ij
Class CompositeImage

java.lang.Object
  extended by ij.ImagePlus
      extended by ij.CompositeImage
All Implemented Interfaces:
ij.measure.Measurements, java.awt.image.ImageObserver

public class CompositeImage
extends ImagePlus


Field Summary
(package private)  java.awt.Image awtImage
           
(package private)  int[] awtImagePixels
           
(package private)  ImageProcessor[] cip
           
(package private)  java.awt.Color[] colors
           
(package private) static int count
           
(package private)  int currentChannel
           
(package private)  java.awt.image.ColorModel imageColorModel
           
(package private)  java.awt.image.MemoryImageSource imageSource
           
(package private)  boolean newPixels
           
(package private)  int[][] pixels
           
(package private)  boolean singleChannel
           
 
Fields inherited from class ij.ImagePlus
changes, CLOSED, COLOR_256, COLOR_RGB, compositeImage, currentSlice, GRAY16, GRAY32, GRAY8, height, img, ip, locked, OPENED, pixelHeight, pixelWidth, roi, sCalibrated, unit, units, UPDATED, waitStart, width, win
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Fields inherited from interface ij.measure.Measurements
AREA, AREA_FRACTION, CENTER_OF_MASS, CENTROID, CIRCULARITY, ELLIPSE, FERET, INTEGRATED_DENSITY, INVERT_Y, KURTOSIS, LABELS, LIMIT, MAX_STANDARDS, MEAN, MEDIAN, MIN_MAX, MODE, PERIMETER, RECT, SKEWNESS, SLICE, STD_DEV
 
Constructor Summary
CompositeImage(ImagePlus imp, int channels)
           
 
Method Summary
static java.awt.image.IndexColorModel createModelFromColor(java.awt.Color color)
           
 java.awt.Color getChannelColor()
           
 ImageProcessor getChannelProcessor()
          Returns a reference to the current ImageProcessor.
 java.awt.Image getImage()
          Returns the current AWT image.
 double getMax(int channel)
           
 double getMin(int channel)
           
 ImageProcessor getProcessor(int channel)
           
(package private)  ImageStack getRGBStack(ImagePlus imp)
           
(package private)  void setup(int channels, ImageStack stack2)
           
 void updateChannelAndDraw()
          Updates this image from the pixel data in its associated ImageProcessor, then displays it.
 void updateImage()
          ImageCanvas.paint() calls this method when the ImageProcessor has generated new image.
 
Methods inherited from class ij.ImagePlus
addImageListener, clone, close, copy, copyScale, createEmptyStack, createImagePlus, createLut, createNewRoi, draw, draw, flush, getBitDepth, getCalibration, getCanvas, getClipboard, getCurrentSlice, getDimensions, getFFTLocation, getFileInfo, getGlobalCalibration, getHeight, getID, getImageStack, getImageStackSize, getLocalCalibration, getLocationAsString, getMask, getNChannels, getNFrames, getNSlices, getOriginalFileInfo, getPixel, getProcessor, getProperties, getProperty, getRoi, getShortTitle, getStack, getStackSize, getStartTime, getStatistics, getStatistics, getStatistics, getStatistics, getTitle, getType, getWidth, getWindow, hide, imageUpdate, invertLookupTable, isInvertedLut, isLocked, isProcessor, killProcessor, killRoi, killStack, lock, lockSilently, mouseMoved, notifyListeners, paste, removeImageListener, repaintWindow, resetClipboard, restoreRoi, revert, saveRoi, setActivated, setCalibration, setColor, setDimensions, setFileInfo, setGlobalCalibration, setIgnoreFlush, setImage, setProcessor, setProcessor2, setProperty, setRoi, setRoi, setRoi, setSlice, setStack, setTitle, setType, setupProcessor, setWindow, show, show, startTiming, toString, trimProcessor, undoFilter, unlock, updateAndDraw, updateAndRepaintWindow, updateStatusbarValue, verifyDimensions
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

awtImagePixels

int[] awtImagePixels

newPixels

boolean newPixels

imageSource

java.awt.image.MemoryImageSource imageSource

imageColorModel

java.awt.image.ColorModel imageColorModel

awtImage

java.awt.Image awtImage

pixels

int[][] pixels

cip

ImageProcessor[] cip

colors

java.awt.Color[] colors

currentChannel

int currentChannel

count

static int count

singleChannel

boolean singleChannel
Constructor Detail

CompositeImage

public CompositeImage(ImagePlus imp,
                      int channels)
Method Detail

getImage

public java.awt.Image getImage()
Description copied from class: ImagePlus
Returns the current AWT image.

Overrides:
getImage in class ImagePlus

updateChannelAndDraw

public void updateChannelAndDraw()
Description copied from class: ImagePlus
Updates this image from the pixel data in its associated ImageProcessor, then displays it. The CompositeImage class overrides this method to only update the current channel.

Overrides:
updateChannelAndDraw in class ImagePlus

getChannelProcessor

public ImageProcessor getChannelProcessor()
Description copied from class: ImagePlus
Returns a reference to the current ImageProcessor. The CompositeImage class overrides this method so it returns the processor associated with the current channel.

Overrides:
getChannelProcessor in class ImagePlus

setup

void setup(int channels,
           ImageStack stack2)

updateImage

public void updateImage()
Description copied from class: ImagePlus
ImageCanvas.paint() calls this method when the ImageProcessor has generated new image.

Overrides:
updateImage in class ImagePlus

getRGBStack

ImageStack getRGBStack(ImagePlus imp)

createModelFromColor

public static java.awt.image.IndexColorModel createModelFromColor(java.awt.Color color)

getChannelColor

public java.awt.Color getChannelColor()

getProcessor

public ImageProcessor getProcessor(int channel)

getMin

public double getMin(int channel)

getMax

public double getMax(int channel)