net.aerith.misao.image
Class RGBCompositeImage

java.lang.Object
  |
  +--net.aerith.misao.image.RGBCompositeImage

public class RGBCompositeImage
extends java.lang.Object
implements ImageContent

The RGBCompositeImage is a set of three monochrome images, which represents a composed RGB image.


Field Summary
protected  MonoImage B_image
          The B image.
protected  LevelAdjustmentSet B_stat
          The image level and statistics of B image.
protected  MonoImage G_image
          The G image.
protected  LevelAdjustmentSet G_stat
          The image level and statistics of G image.
protected  MonoImage R_image
          The R image.
protected  LevelAdjustmentSet R_stat
          The image level and statistics of R image.
 
Constructor Summary
RGBCompositeImage(MonoImage initial_R_image, MonoImage initial_G_image, MonoImage initial_B_image)
          Constructs an RGBCompositeImage.
 
Method Summary
 MonoImage getBImage()
          Gets the B image.
 LevelAdjustmentSet getBImageLevelAdjustmentSet()
          Gets the image level and statistics of the B image.
 MonoImage getGImage()
          Gets the G image.
 LevelAdjustmentSet getGImageLevelAdjustmentSet()
          Gets the image level and statistics of the G image.
 java.awt.Image getImage()
          Creates an java.awt.Image.
 MonoImage getRImage()
          Gets the R image.
 LevelAdjustmentSet getRImageLevelAdjustmentSet()
          Gets the image level and statistics of the R image.
 Size getSize()
          Gets the image size.
 void setBImageLevelAdjustmentSet(LevelAdjustmentSet stat)
          Sets the image level and statistics of the B image.
 void setGImageLevelAdjustmentSet(LevelAdjustmentSet stat)
          Sets the image level and statistics of the G image.
 void setRImageLevelAdjustmentSet(LevelAdjustmentSet stat)
          Sets the image level and statistics of the R image.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

R_image

protected MonoImage R_image
The R image.

G_image

protected MonoImage G_image
The G image.

B_image

protected MonoImage B_image
The B image.

R_stat

protected LevelAdjustmentSet R_stat
The image level and statistics of R image.

G_stat

protected LevelAdjustmentSet G_stat
The image level and statistics of G image.

B_stat

protected LevelAdjustmentSet B_stat
The image level and statistics of B image.
Constructor Detail

RGBCompositeImage

public RGBCompositeImage(MonoImage initial_R_image,
                         MonoImage initial_G_image,
                         MonoImage initial_B_image)
Constructs an RGBCompositeImage.
Parameters:
initial_R_image - the R image.
initial_G_image - the G image.
initial_B_image - the B image.
Method Detail

getSize

public Size getSize()
Gets the image size.
Specified by:
getSize in interface ImageContent
Returns:
the image size.

getRImage

public MonoImage getRImage()
Gets the R image.
Returns:
the R image.

getGImage

public MonoImage getGImage()
Gets the G image.
Returns:
the G image.

getBImage

public MonoImage getBImage()
Gets the B image.
Returns:
the B image.

getRImageLevelAdjustmentSet

public LevelAdjustmentSet getRImageLevelAdjustmentSet()
Gets the image level and statistics of the R image.
Returns:
the image level and statistics of the R image.

getGImageLevelAdjustmentSet

public LevelAdjustmentSet getGImageLevelAdjustmentSet()
Gets the image level and statistics of the G image.
Returns:
the image level and statistics of the G image.

getBImageLevelAdjustmentSet

public LevelAdjustmentSet getBImageLevelAdjustmentSet()
Gets the image level and statistics of the B image.
Returns:
the image level and statistics of the B image.

setRImageLevelAdjustmentSet

public void setRImageLevelAdjustmentSet(LevelAdjustmentSet stat)
Sets the image level and statistics of the R image.
Parameters:
stat - the image level and statistics of the R image.

setGImageLevelAdjustmentSet

public void setGImageLevelAdjustmentSet(LevelAdjustmentSet stat)
Sets the image level and statistics of the G image.
Parameters:
stat - the image level and statistics of the G image.

setBImageLevelAdjustmentSet

public void setBImageLevelAdjustmentSet(LevelAdjustmentSet stat)
Sets the image level and statistics of the B image.
Parameters:
stat - the image level and statistics of the B image.

getImage

public java.awt.Image getImage()
Creates an java.awt.Image. The range of pixel values is expanded so that the minimum value becomes 0 and the maximum value becomes 255.
Specified by:
getImage in interface ImageContent
Returns:
an java.awt.Image.