Enum Class ContrastEnhancementType

Object
Enum<ContrastEnhancementType>
ContrastEnhancementType
All Implemented Interfaces:
Serializable, Comparable<ContrastEnhancementType>, Constable

public enum ContrastEnhancementType extends Enum<ContrastEnhancementType>
Starting with version 14.x, ContrastEnhancement can be customized to support different ContrastMethods algorithm and parameters.

This class contains implementations from previously defined algorithm, as well as new ones.

Define a new Type for a newly defined Method-Algorithm and implements the {@link ContrastEnhancementType#process(ImageWorker, Hints, Map))} method.

Author:
Daniele Romagnoli, GeoSolutions SAS
  • Enum Constant Details

  • Field Details

    • KEY_MIN

      public static final String KEY_MIN
      Parameter Key used to refer to the minimim value
      See Also:
    • KEY_MAX

      public static final String KEY_MAX
      Parameter Key used to refer to the maximim value
      See Also:
    • KEY_DATATYPE

      public static final String KEY_DATATYPE
      Parameter Key used to refer to the maximim value
      See Also:
    • KEY_HISTOGRAM

      public static final String KEY_HISTOGRAM
      Parameter Key used to refer to the histogram instance
      See Also:
    • KEY_CORRECTION_FACTOR

      public static final String KEY_CORRECTION_FACTOR
      Parameter Key used to refer to the correctionFactor value
      See Also:
    • KEY_NORMALIZATION_FACTOR

      public static final String KEY_NORMALIZATION_FACTOR
      Parameter Key used to refer to the normalizationFactor value
      See Also:
    • NORMALIZE_STRETCH_TO_MINMAX_NAME

      public static final String NORMALIZE_STRETCH_TO_MINMAX_NAME
      See Also:
    • NORMALIZE_CLIP_TO_MINMAX_NAME

      public static final String NORMALIZE_CLIP_TO_MINMAX_NAME
      See Also:
    • NORMALIZE_CLIP_TO_ZERO_NAME

      public static final String NORMALIZE_CLIP_TO_ZERO_NAME
      See Also:
  • Method Details

    • values

      public static ContrastEnhancementType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ContrastEnhancementType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • areEqual

      public static boolean areEqual(double a, double b)
      Simple utility method to check Double values equality.
    • generateGammaCorrectedPiecewise

      public static PiecewiseTransform1D<DefaultPiecewiseTransform1DElement> generateGammaCorrectedPiecewise(double minimum, double maximum, double gammaValue)
      Generate piecewise transformation for gamma correction
    • getType

      Return a proper ContrastEnhancementType instance depending on the provided AbstractContrastMethodStrategy.