类 Inverter
- java.lang.Object
-
- cc.chungkwong.mathocr.offline.preprocessor.SimplePreprocessor
-
- cc.chungkwong.mathocr.offline.preprocessor.Inverter
-
- 所有已实现的接口:
Preprocessor
public class Inverter extends SimplePreprocessor
- 作者:
- Chan Chung Kwong
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancheckWhiteOnBlack(byte[] pixels)Check if a image seem to be white on blackbooleanisAutoDetect()Check if auto detection of white on black is enabledvoidpreprocess(byte[] from, byte[] to, int width, int height)Perform preprocess operation-
从类继承的方法 cc.chungkwong.mathocr.offline.preprocessor.SimplePreprocessor
apply
-
-
-
-
方法详细资料
-
isAutoDetect
public boolean isAutoDetect()
Check if auto detection of white on black is enabled- 返回:
- enabled or not
-
checkWhiteOnBlack
public boolean checkWhiteOnBlack(byte[] pixels)
Check if a image seem to be white on black- 参数:
pixels- the pixels array of the image- 返回:
- test result
-
preprocess
public void preprocess(byte[] from, byte[] to, int width, int height)从类复制的说明:SimplePreprocessorPerform preprocess operation- 指定者:
preprocess在类中SimplePreprocessor- 参数:
from- pixel array of the input imageto- pixel array of the output imagewidth- width of the input imageheight- height of the input image
-
-