类 GlobalBinarizer
- java.lang.Object
-
- cc.chungkwong.mathocr.offline.preprocessor.SimplePreprocessor
-
- cc.chungkwong.mathocr.offline.preprocessor.GlobalBinarizer
-
- 所有已实现的接口:
Preprocessor
- 直接已知子类:
FixedBinarizer,OtsuBinarizer
public abstract class GlobalBinarizer extends SimplePreprocessor
- 作者:
- Chan Chung Kwong
-
-
构造器概要
构造器 构造器 说明 GlobalBinarizer()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract intgetThrehold(byte[] pixels)voidpreprocess(byte[] from, byte[] to, int width, int height)Perform preprocess operation-
从类继承的方法 cc.chungkwong.mathocr.offline.preprocessor.SimplePreprocessor
apply
-
-
-
-
方法详细资料
-
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
-
getThrehold
protected abstract int getThrehold(byte[] pixels)
-
-