jjil.algorithm
Class Gray3Bands2Rgb

java.lang.Object
  extended by jjil.algorithm.Gray3Bands2Rgb

public class Gray3Bands2Rgb
extends java.lang.Object

Gray3Bands2Rgb converts three 8-bit gray images to RGB by copying the three input gray values into R, G, and B. The signed byte values in the gray image are changed into unsigned byte values in the ARGB word.

Author:
webb

Constructor Summary
Gray3Bands2Rgb()
          Creates a new instance of Gray3Bands2Rgb
 
Method Summary
 RgbImage push(Gray8Image imRed, Gray8Image imGreen, Gray8Image imBlue)
          Converts 3 8-bit gray images into an RGB image by combining the R, G, and B values.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gray3Bands2Rgb

public Gray3Bands2Rgb()
Creates a new instance of Gray3Bands2Rgb

Method Detail

push

public RgbImage push(Gray8Image imRed,
                     Gray8Image imGreen,
                     Gray8Image imBlue)
              throws Error
Converts 3 8-bit gray images into an RGB image by combining the R, G, and B values. Also changes the data range of the bytes from -128->127 to 0->255 since the bit shift in Java would treat them as signed values otherwise.

Parameters:
imRed - the input red image.
imGreen - the input green image.
imBlue - the input blue image.
Returns:
the color image
Throws:
Error - if the input sizes do not match