public enum ContrastEnhancementType extends Enum<ContrastEnhancementType>
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 ContrastEnhancementType#process(ImageWorker, Hints, Map))
method.
Enum Constant and Description |
---|
EXPONENTIAL |
HISTOGRAM |
LOGARITHMIC |
NORMALIZE_CLIP_TO_MINMAX |
NORMALIZE_CLIP_TO_ZERO |
NORMALIZE_DEFAULT |
NORMALIZE_STRETCH_TO_MINMAX |
Modifier and Type | Field and Description |
---|---|
static String |
KEY_CORRECTION_FACTOR
Parameter Key used to refer to the correctionFactor value
|
static String |
KEY_DATATYPE
Parameter Key used to refer to the maximim value
|
static String |
KEY_HISTOGRAM
Parameter Key used to refer to the histogram instance
|
static String |
KEY_MAX
Parameter Key used to refer to the maximim value
|
static String |
KEY_MIN
Parameter Key used to refer to the minimim value
|
static String |
KEY_NORMALIZATION_FACTOR
Parameter Key used to refer to the normalizationFactor value
|
static String |
NORMALIZE_CLIP_TO_MINMAX_NAME |
static String |
NORMALIZE_CLIP_TO_ZERO_NAME |
static String |
NORMALIZE_STRETCH_TO_MINMAX_NAME |
Modifier and Type | Method and Description |
---|---|
static 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 correction
|
static ContrastEnhancementType |
getType(AbstractContrastMethodStrategy method)
Return a proper
ContrastEnhancementType instance depending on the provided AbstractContrastMethodStrategy . |
static ContrastEnhancementType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContrastEnhancementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContrastEnhancementType EXPONENTIAL
public static final ContrastEnhancementType LOGARITHMIC
public static final ContrastEnhancementType HISTOGRAM
public static final ContrastEnhancementType NORMALIZE_DEFAULT
public static final ContrastEnhancementType NORMALIZE_STRETCH_TO_MINMAX
public static final ContrastEnhancementType NORMALIZE_CLIP_TO_MINMAX
public static final ContrastEnhancementType NORMALIZE_CLIP_TO_ZERO
public static final String KEY_MIN
public static final String KEY_MAX
public static final String KEY_DATATYPE
public static final String KEY_HISTOGRAM
public static final String KEY_CORRECTION_FACTOR
public static final String KEY_NORMALIZATION_FACTOR
public static final String NORMALIZE_STRETCH_TO_MINMAX_NAME
public static final String NORMALIZE_CLIP_TO_MINMAX_NAME
public static final String NORMALIZE_CLIP_TO_ZERO_NAME
public static ContrastEnhancementType[] values()
for (ContrastEnhancementType c : ContrastEnhancementType.values()) System.out.println(c);
public static ContrastEnhancementType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean areEqual(double a, double b)
public static PiecewiseTransform1D<DefaultPiecewiseTransform1DElement> generateGammaCorrectedPiecewise(double minimum, double maximum, double gammaValue)
public static ContrastEnhancementType getType(AbstractContrastMethodStrategy method)
ContrastEnhancementType
instance depending on the provided AbstractContrastMethodStrategy
.Copyright © 1996–2023 Geotools. All rights reserved.