j2d.hpp
Class FalseColorProcessor
java.lang.Object
j2d.ImageProcessor
j2d.hpp.FalseColorProcessor
- All Implemented Interfaces:
- java.awt.image.ImageObserver
public class FalseColorProcessor
- extends ImageProcessor
This class provides some image processing on an image by generating false
color. If the input image is color, it is converted to grayscale before
the false color is applied.
The source of this method of false coloring is the following paper:
C.W.A.M. van Overfeld, "Color Waves: A Simple Heuristic for Choosing
False Colors", Journal of Graphics Tools, Vol. 2, No. 4: 45-50
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary |
void |
processImage()
Implementation of ImageProcessor |
void |
setColorization(double ar,
double ag,
double ab)
Set the colorization parameters. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FalseColorProcessor
public FalseColorProcessor()
- Create a new FalseColorProcessor
processImage
public void processImage()
throws java.lang.Exception
- Implementation of ImageProcessor
- Specified by:
processImage
in class ImageProcessor
- Throws:
java.lang.Exception
setColorization
public void setColorization(double ar,
double ag,
double ab)
- Set the colorization parameters. The values must be between
0.01 and 0.5.