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