-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum ImageFilterType extends Enum<ImageFilterType>
Image filter types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classImageFilterType.Companion
-
Enum Constant Summary
Enum Constants Enum Constant Description SENSITIVE_BINARIZATIONBinarization filter for poor quality printed papers.
LOW_LIGHT_BINARIZATION_2Binarization filter primary intended to use on low-contrast documents with heavy shadows.
LOW_LIGHT_BINARIZATIONBinarization filter primary intended to use on low-contrast documents with heavy shadows.
EDGE_HIGHLIGHTA filter that enhances edges in low-contrast documents.
DEEP_BINARIZATIONA filter for black and white conversion primary used for low-contrast documents.
OTSU_BINARIZATIONA filter for black and white conversion using OTSU binarization.
BLACK_AND_WHITEBlack and white filter with background cleaning. Creates a grayscaled 8-bit image with mostly black or white pixels. Usecase: Textual documents or documents with black and white illustrations.
BACKGROUND_CLEANCleans up the background and tries to preserve photos within the image. Usecase: magazine pages, flyers.
PURE_BINARIZEDA filter for binarizing an image. Creates an 8-bit image with pixel values set to eiter 0 or 255. Usecase: Preparation for optical character recognition.
COLOR_DOCUMENTFixes white-balance and cleans up the background. Usecase: images of paper documents.
BINARIZEDStandard binarization filter with contrast optimization. Creates a grayscaled 8-bit image with mostly black or white pixels. Usecase: Preparation for optical character recognition.
GRAYSCALEStandard grayscale filter. Creates a grayscaled 8-bit image.
COLOR_ENHANCEDOptimizes colors, contrast and brightness. Usecase: photos.
NONEPassthrough filter. Does not alter the image.
-
Method Summary
Modifier and Type Method Description final IntegergetCode()final StringgetFilterName()final StringgetName()final IntegergetOrdinal()-
-
Method Detail
-
getFilterName
final String getFilterName()
-
getOrdinal
final Integer getOrdinal()
-
-
-
-