Package org.geotools.api.style
Class ContrastMethod
- Object
- 
- CodeList<ContrastMethod>
- 
- ContrastMethod
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<ContrastMethod>
 
 public final class ContrastMethod extends CodeList<ContrastMethod> The ContrastEnhancement element defines contrast enhancement for a channel of a false-color image or for a color image.In the case of a color image, the relative grayscale brightness of a pixel color is used. “Normalize” means to stretch the contrast so that the dimmest color is stretched to black and the brightest color is stretched to white, with all colors in between stretched out linearly. “Histogram” means to stretch the contrast based on a histogram of how many colors are at each brightness level on input, with the goal of producing equal number of pixels in the image at each brightness level on output. This has the effect of revealing many subtle ground features. - Since:
- GeoAPI 2.2
- Author:
- Open Geospatial Consortium, Johann Sorel (Geomatys)
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static ContrastMethodEXPONENTIALstatic ContrastMethodHISTOGRAMHistogram enchancement.static ContrastMethodLOGARITHMICstatic ContrastMethodNONENo enchancement. this is the default value.static ContrastMethodNORMALIZENormalize enchancement.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContrastMethod[]family()Returns the list of enumerations of the same kind than this enum.static ContrastMethodvalueOf(String code)Returns the contrast type that matches the given string, or returns a new one if none match it.static ContrastMethod[]values()Returns the list ofContrastTypes.
 
- 
- 
- 
Field Detail- 
NORMALIZEpublic static final ContrastMethod NORMALIZE Normalize enchancement. “Normalize” means to stretch the contrast so that the dimmest color is stretched to black and the brightest color is stretched to white, with all colors in between stretched out linearly.
 - 
HISTOGRAMpublic static final ContrastMethod HISTOGRAM Histogram enchancement. “Histogram” means to stretch the contrast based on a histogram of how many colors are at each brightness level on input, with the goal of producing equal number of pixels in the image at each brightness level on output.
 - 
LOGARITHMICpublic static final ContrastMethod LOGARITHMIC 
 - 
EXPONENTIALpublic static final ContrastMethod EXPONENTIAL 
 - 
NONEpublic static final ContrastMethod NONE No enchancement. this is the default value.
 
- 
 - 
Method Detail- 
valuespublic static ContrastMethod[] values() Returns the list ofContrastTypes.- Returns:
- The list of codes declared in the current JVM.
 
 - 
familypublic ContrastMethod[] family() Returns the list of enumerations of the same kind than this enum.- Specified by:
- familyin class- CodeList<ContrastMethod>
- Returns:
- The codes of the same kind than this code.
 
 - 
valueOfpublic static ContrastMethod valueOf(String code) Returns the contrast type that matches the given string, or returns a new one if none match it.- Parameters:
- code- The name of the code to fetch or to create.
- Returns:
- A code matching the given name.
 
 
- 
 
-