Enum ImageFilterType

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    @Deprecated(message = "Use io.scanbot.imagefilters.ParametricFilter instead.") 
    public enum ImageFilterType
    extends Enum<ImageFilterType>
                        

    Image filter types.

    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      NONE

      Passthrough filter. Does not alter the image.

      COLOR_ENHANCED

      Optimizes colors, contrast and brightness. Usecase: photos.

      GRAYSCALE

      Standard grayscale filter. Creates a grayscaled 8-bit image and optimizes contrast and dynamic range.

      PURE_GRAYSCALE

      Standard grayscale filter. Creates a grayscaled 8-bit image. Same as GRAYSCALE, but without additional optimizations

      BINARIZED

      Standard binarization filter with contrast optimization. Creates a grayscaled 8-bit image with mostly black or white pixels. Usecase: Preparation for optical character recognition.

      COLOR_DOCUMENT

      Fixes white-balance and cleans up the background. Usecase: images of paper documents.

      PURE_BINARIZED

      A 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.

      BACKGROUND_CLEAN

      Cleans up the background and tries to preserve photos within the image. Usecase: magazine pages, flyers.

      BLACK_AND_WHITE

      Black 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.

      OTSU_BINARIZATION

      A filter for black and white conversion using OTSU binarization.

      DEEP_BINARIZATION

      A filter for black and white conversion primary used for low-contrast documents.

      EDGE_HIGHLIGHT

      A filter that enhances edges in low-contrast documents.

      LOW_LIGHT_BINARIZATION

      Binarization filter primary intended to use on low-contrast documents with heavy shadows.

      LOW_LIGHT_BINARIZATION_2

      Binarization filter primary intended to use on low-contrast documents with heavy shadows.

      SENSITIVE_BINARIZATION

      Binarization filter for poor quality printed papers.

    • Method Summary

      Modifier and Type Method Description
      final ImageFilterType valueOf(String value) Returns the enum constant of this type with the specified name.
      final Array<ImageFilterType> values() Returns an array containing the constants of this enum type, in the order they're declared.
      final Integer getCode()
      final String getFilterName()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • valueOf

         final ImageFilterType valueOf(String value)

        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

      • values

         final Array<ImageFilterType> values()

        Returns an array containing the constants of this enum type, in the order they're declared.

        This method may be used to iterate over the constants.