类 ToGrayscale
- java.lang.Object
-
- cc.chungkwong.mathocr.offline.preprocessor.ToGrayscale
-
- 所有已实现的接口:
Preprocessor
public class ToGrayscale extends Object implements Preprocessor
- 作者:
- Chan Chung Kwong
-
-
构造器概要
构造器 构造器 说明 ToGrayscale()Construct a GrayscaleToGrayscale(boolean linear)Construct a GrayscaleToGrayscale(int wR, int wG, int wB)Construct a Grayscale
-
-
-
构造器详细资料
-
ToGrayscale
public ToGrayscale()
Construct a Grayscale
-
ToGrayscale
public ToGrayscale(boolean linear)
Construct a Grayscale- 参数:
linear- linear color space
-
ToGrayscale
public ToGrayscale(int wR, int wG, int wB)Construct a Grayscale- 参数:
wR- coefficient of red componentwG- coefficient of green componentwB- coefficient of blue component
-
-
方法详细资料
-
apply
public BufferedImage apply(BufferedImage image, boolean inplace)
从接口复制的说明:PreprocessorPerform preprocess operation- 指定者:
apply在接口中Preprocessor- 参数:
image- input imageinplace- attempt to reuse input image or not- 返回:
- processed image
-
-