Package com.itextpdf.pdfocr.tesseract4
Class ImagePreprocessingOptions
java.lang.Object
com.itextpdf.pdfocr.tesseract4.ImagePreprocessingOptions
Additional options applied on image preprocessing step.
-
Constructor Summary
ConstructorDescriptionCreatesImagePreprocessingOptions
instance.ImagePreprocessingOptions
(ImagePreprocessingOptions imagePreprocessingOptions) Creates a newImagePreprocessingOptions
instance based on anotherImagePreprocessingOptions
instance (copy constructor). -
Method Summary
Modifier and TypeMethodDescriptionfinal int
GetstileHeight
.final int
GetstileWidth
.final boolean
GetssmoothTiling
.setSmoothTiling
(boolean smoothTiling) SetssmoothTiling
.setTileHeight
(int tileHeight) SetstileHeight
.setTileWidth
(int tileWidth) SetstileWidth
.
-
Constructor Details
-
ImagePreprocessingOptions
public ImagePreprocessingOptions()CreatesImagePreprocessingOptions
instance. -
ImagePreprocessingOptions
Creates a newImagePreprocessingOptions
instance based on anotherImagePreprocessingOptions
instance (copy constructor).- Parameters:
-
imagePreprocessingOptions
- the otherImagePreprocessingOptions
instance
-
-
Method Details
-
getTileWidth
public final int getTileWidth()GetstileWidth
.- Returns:
- tile width
-
setTileWidth
SetstileWidth
.- Parameters:
-
tileWidth
- tile width - Returns:
-
ImagePreprocessingOptions
-
getTileHeight
public final int getTileHeight()GetstileHeight
.- Returns:
- tile height
-
setTileHeight
SetstileHeight
.- Parameters:
-
tileHeight
- tile height - Returns:
-
ImagePreprocessingOptions
-
isSmoothTiling
public final boolean isSmoothTiling()GetssmoothTiling
.- Returns:
- smooth tiling flag
-
setSmoothTiling
SetssmoothTiling
.- Parameters:
-
smoothTiling
- smooth tiling flag - Returns:
-
ImagePreprocessingOptions
-