Enum ContrastEnhancementType

  • All Implemented Interfaces:
    Serializable, Comparable<ContrastEnhancementType>

    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
    • Field Detail

      • KEY_MIN

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

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

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

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

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

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

        public static final String NORMALIZE_STRETCH_TO_MINMAX_NAME
        See Also:
        Constant Field Values
      • NORMALIZE_CLIP_TO_MINMAX_NAME

        public static final String NORMALIZE_CLIP_TO_MINMAX_NAME
        See Also:
        Constant Field Values
      • NORMALIZE_CLIP_TO_ZERO_NAME

        public static final String NORMALIZE_CLIP_TO_ZERO_NAME
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static ContrastEnhancementType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ContrastEnhancementType c : ContrastEnhancementType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ContrastEnhancementType valueOf​(String name)
        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.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type 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