j2d.hpp
Class FalseColorProcessor

java.lang.Object
  extended by j2d.ImageProcessor
      extended by 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


Field Summary
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
FalseColorProcessor()
          Create a new FalseColorProcessor
 
Method Summary
 void processImage()
          Implementation of ImageProcessor
 void setColorization(double ar, double ag, double ab)
          Set the colorization parameters.
 
Methods inherited from class j2d.ImageProcessor
getBaseImage, getBaseImageHeight, getBaseImageWidth, getPixels, getProcessedImage, imageUpdate, openImage, setBaseImage, setPixels
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FalseColorProcessor

public FalseColorProcessor()
Create a new FalseColorProcessor

Method Detail

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.