public class GammaCorrection extends Object implements PixelProcessor<Float>
Modifier and Type | Field and Description |
---|---|
protected double |
gamma |
Constructor and Description |
---|
GammaCorrection()
Construct a GammaCorrection with the default gamma of 0.2
|
GammaCorrection(double gamma)
Construct a GammaCorrection with the given gamma
|
Modifier and Type | Method and Description |
---|---|
Float |
processPixel(Float pixel)
Process the given pixel returning a new value
for the pixel.
|
protected double gamma
public GammaCorrection()
public GammaCorrection(double gamma)
gamma
- The gamma value to usepublic Float processPixel(Float pixel)
PixelProcessor
processPixel
in interface PixelProcessor<Float>
pixel
- The pixel to process