Class GammaImageProcessor
- java.lang.Object
-
- org.openstreetmap.josm.gui.layer.imagery.GammaImageProcessor
-
- All Implemented Interfaces:
SessionAwareReadApply
,ImageProcessor
public class GammaImageProcessor extends Object implements ImageProcessor, SessionAwareReadApply
An image processor which adjusts the gamma value of an image.- Since:
- 10547
-
-
Constructor Summary
Constructors Constructor Description GammaImageProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyFromPropertiesMap(Map<String,String> properties)
Import settings from a map of properties.double
getGamma()
Returns the currently set gamma value.BufferedImage
process(BufferedImage image)
This method should process given image according to image processors which is contained in the layervoid
setGamma(double gamma)
Sets a new gamma value,1
stands for no correction.Map<String,String>
toPropertiesMap()
Export settings to a map of properties.String
toString()
-
-
-
Constructor Detail
-
GammaImageProcessor
public GammaImageProcessor()
-
-
Method Detail
-
getGamma
public double getGamma()
Returns the currently set gamma value.- Returns:
- the currently set gamma value
-
setGamma
public void setGamma(double gamma)
Sets a new gamma value,1
stands for no correction.- Parameters:
gamma
- new gamma value
-
process
public BufferedImage process(BufferedImage image)
Description copied from interface:ImageProcessor
This method should process given image according to image processors which is contained in the layer- Specified by:
process
in interfaceImageProcessor
- Parameters:
image
- that should be processed- Returns:
- processed image
-
applyFromPropertiesMap
public void applyFromPropertiesMap(Map<String,String> properties)
Description copied from interface:SessionAwareReadApply
Import settings from a map of properties.- Specified by:
applyFromPropertiesMap
in interfaceSessionAwareReadApply
- Parameters:
properties
- properties map
-
toPropertiesMap
public Map<String,String> toPropertiesMap()
Description copied from interface:SessionAwareReadApply
Export settings to a map of properties.- Specified by:
toPropertiesMap
in interfaceSessionAwareReadApply
- Returns:
- map of properties
-
-