类 SimplePreprocessor
- java.lang.Object
-
- cc.chungkwong.mathocr.offline.preprocessor.SimplePreprocessor
-
- 所有已实现的接口:
Preprocessor
- 直接已知子类:
Dilation,Erosion,GlobalBinarizer,Inverter,KFill,MeanFilter,MedianFilter,NoiseRemove,SauvolaBinarizer,Thinning
public abstract class SimplePreprocessor extends Object implements Preprocessor
- 作者:
- Chan Chung Kwong
-
-
构造器概要
构造器 构造器 说明 SimplePreprocessor()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 BufferedImageapply(BufferedImage image, boolean inplace)Perform preprocess operationabstract voidpreprocess(byte[] from, byte[] to, int width, int height)Perform preprocess operation
-
-
-
方法详细资料
-
apply
public BufferedImage apply(BufferedImage image, boolean inplace)
Perform preprocess operation- 指定者:
apply在接口中Preprocessor- 参数:
image- input imageinplace- attempt to reuse input image or not- 返回:
- processed image
-
preprocess
public abstract void preprocess(byte[] from, byte[] to, int width, int height)Perform preprocess operation- 参数:
from- pixel array of the input imageto- pixel array of the output imagewidth- width of the input imageheight- height of the input image
-
-