Class GammaImageProcessor
java.lang.Object
org.openstreetmap.josm.gui.layer.imagery.GammaImageProcessor
- All Implemented Interfaces:
SessionAwareReadApply,ImageProcessor
An image processor which adjusts the gamma value of an image.
- Since:
- 10547
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyFromPropertiesMap(Map<String, String> properties) Import settings from a map of properties.doublegetGamma()Returns the currently set gamma value.process(BufferedImage image) This method should process given image according to image processors which is contained in the layervoidsetGamma(double gamma) Sets a new gamma value,1stands for no correction.Export settings to a map of properties.toString()
-
Field Details
-
gamma
-
gammaChange
-
op3
-
op4
-
-
Constructor Details
-
GammaImageProcessor
public GammaImageProcessor()
-
-
Method Details
-
getGamma
Returns the currently set gamma value.- Returns:
- the currently set gamma value
-
setGamma
Sets a new gamma value,1stands for no correction.- Parameters:
gamma- new gamma value
-
process
Description copied from interface:ImageProcessorThis method should process given image according to image processors which is contained in the layer- Specified by:
processin interfaceImageProcessor- Parameters:
image- that should be processed- Returns:
- processed image
-
applyFromPropertiesMap
Description copied from interface:SessionAwareReadApplyImport settings from a map of properties.- Specified by:
applyFromPropertiesMapin interfaceSessionAwareReadApply- Parameters:
properties- properties map
-
toPropertiesMap
Description copied from interface:SessionAwareReadApplyExport settings to a map of properties.- Specified by:
toPropertiesMapin interfaceSessionAwareReadApply- Returns:
- map of properties
-
toString
-