类 SauvolaBinarizer
- java.lang.Object
-
- cc.chungkwong.mathocr.offline.preprocessor.SimplePreprocessor
-
- cc.chungkwong.mathocr.offline.preprocessor.SauvolaBinarizer
-
- 所有已实现的接口:
Preprocessor
public class SauvolaBinarizer extends SimplePreprocessor
Sauvola's threholding- 作者:
- Chan Chung Kwong
-
-
构造器概要
构造器 构造器 说明 SauvolaBinarizer()Create an binarizer using global settingsSauvolaBinarizer(double weight, int window)Create an binarizer
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 doublegetWeight()intgetWindow()voidpreprocess(byte[] from, byte[] to, int width, int height)Perform preprocess operation-
从类继承的方法 cc.chungkwong.mathocr.offline.preprocessor.SimplePreprocessor
apply
-
-
-
-
方法详细资料
-
getWeight
public double getWeight()
- 返回:
- Weight
-
getWindow
public int getWindow()
- 返回:
- side of sliding windows
-
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
-
-