Enum Class ContrastEnhancementType
- All Implemented Interfaces:
Serializable
,Comparable<ContrastEnhancementType>
,Constable
Starting with version 14.x,
ContrastEnhancement
can be customized to support different
ContrastMethod
s 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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Parameter Key used to refer to the correctionFactor valuestatic final String
Parameter Key used to refer to the maximim valuestatic final String
Parameter Key used to refer to the histogram instancestatic final String
Parameter Key used to refer to the maximim valuestatic final String
Parameter Key used to refer to the minimim valuestatic final String
Parameter Key used to refer to the normalizationFactor valuestatic final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
areEqual
(double a, double b) Simple utility method to check Double values equality.static PiecewiseTransform1D<DefaultPiecewiseTransform1DElement>
generateGammaCorrectedPiecewise
(double minimum, double maximum, double gammaValue) Generate piecewise transformation for gamma correctionstatic ContrastEnhancementType
Return a properContrastEnhancementType
instance depending on the providedAbstractContrastMethodStrategy
.static ContrastEnhancementType
Returns the enum constant of this class with the specified name.static ContrastEnhancementType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXPONENTIAL
-
LOGARITHMIC
-
HISTOGRAM
-
NORMALIZE_DEFAULT
-
NORMALIZE_STRETCH_TO_MINMAX
-
NORMALIZE_CLIP_TO_MINMAX
-
NORMALIZE_CLIP_TO_ZERO
-
-
Field Details
-
KEY_MIN
Parameter Key used to refer to the minimim value- See Also:
-
KEY_MAX
Parameter Key used to refer to the maximim value- See Also:
-
KEY_DATATYPE
Parameter Key used to refer to the maximim value- See Also:
-
KEY_HISTOGRAM
Parameter Key used to refer to the histogram instance- See Also:
-
KEY_CORRECTION_FACTOR
Parameter Key used to refer to the correctionFactor value- See Also:
-
KEY_NORMALIZATION_FACTOR
Parameter Key used to refer to the normalizationFactor value- See Also:
-
NORMALIZE_STRETCH_TO_MINMAX_NAME
- See Also:
-
NORMALIZE_CLIP_TO_MINMAX_NAME
- See Also:
-
NORMALIZE_CLIP_TO_ZERO_NAME
- See Also:
-
-
Method Details
-
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
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 nameNullPointerException
- 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 properContrastEnhancementType
instance depending on the providedAbstractContrastMethodStrategy
.
-