类 Cropper
- java.lang.Object
-
- cc.chungkwong.mathocr.offline.preprocessor.Cropper
-
- 所有已实现的接口:
Preprocessor
public class Cropper extends Object implements Preprocessor
- 作者:
- Chan Chung Kwong
-
-
构造器概要
构造器 构造器 说明 Cropper(int left, int right, int top, int bottom)Construct a Crop
-
-
-
构造器详细资料
-
Cropper
public Cropper(int left, int right, int top, int bottom)Construct a Crop- 参数:
left- minimum x-coordinate of bounding box of the area to be keptright- maximum x-coordinate of bounding box of the area to be kepttop- minimum y-coordinate of bounding box of the area to be keptbottom- maximum y-coordinate of bounding box of the area to be kept
-
-
方法详细资料
-
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
-
-