Package ij

Class CompositeImage

java.lang.Object
ij.ImagePlus
ij.CompositeImage
All Implemented Interfaces:
Measurements, ImageObserver, Cloneable

public class CompositeImage extends ImagePlus
  • Field Details

    • COMPOSITE

      public static final int COMPOSITE
      Display modes (note: TRANSPARENT mode has not yet been implemented)
      See Also:
    • COLOR

      public static final int COLOR
      Display modes (note: TRANSPARENT mode has not yet been implemented)
      See Also:
    • GRAYSCALE

      public static final int GRAYSCALE
      Display modes (note: TRANSPARENT mode has not yet been implemented)
      See Also:
    • TRANSPARENT

      public static final int TRANSPARENT
      Display modes (note: TRANSPARENT mode has not yet been implemented)
      See Also:
    • MAX_CHANNELS

      public static final int MAX_CHANNELS
      See Also:
  • Constructor Details

    • CompositeImage

      public CompositeImage(ImagePlus imp)
    • CompositeImage

      public CompositeImage(ImagePlus imp, int mode)
  • Method Details

    • getImage

      public Image getImage()
      Description copied from class: ImagePlus
      Returns this image as a 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
    • updateAllChannelsAndDraw

      public void updateAllChannelsAndDraw()
    • getChannelProcessor

      public ImageProcessor getChannelProcessor()
      Description copied from class: ImagePlus
      Returns a reference to the current ImageProcessor. The CompositeImage class overrides this method to return the processor associated with the current channel.
      Overrides:
      getChannelProcessor in class ImagePlus
    • resetDisplayRanges

      public void resetDisplayRanges()
    • updateAndDraw

      public void updateAndDraw()
      Description copied from class: ImagePlus
      Updates this image from the pixel data in its associated ImageProcessor, then displays it. Does nothing if there is no window associated with this image (i.e. show() has not been called).
      Overrides:
      updateAndDraw in class ImagePlus
    • 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
    • createLutFromColor

      public LUT createLutFromColor(Color color)
    • getChannelColor

      public Color getChannelColor()
    • getProcessor

      public ImageProcessor getProcessor(int channel)
    • getActiveChannels

      public boolean[] getActiveChannels()
    • setMode

      public void setMode(int mode)
    • getMode

      public int getMode()
    • getModeAsString

      public String getModeAsString()
    • getChannelLut

      public LUT getChannelLut(int channel)
    • getChannelLut

      public LUT getChannelLut()
    • getLuts

      public LUT[] getLuts()
      Description copied from class: ImagePlus
      Returns an array containing the lookup tables used by this image, one per channel, or an empty array if this is an RGB image.
      Overrides:
      getLuts in class ImagePlus
      See Also:
    • setLuts

      public void setLuts(LUT[] luts)
    • copyLuts

      public void copyLuts(ImagePlus imp)
      Copies the LUTs and display mode of 'imp' to this image. Does nothing if 'imp' is not a CompositeImage or 'imp' and this image do not have the same number of channels.
    • reset

      public void reset()
    • setChannelLut

      public void setChannelLut(LUT table)
    • setChannelLut

      public void setChannelLut(LUT table, int channel)
    • setChannelColorModel

      public void setChannelColorModel(IndexColorModel cm)
    • setDisplayRange

      public void setDisplayRange(double min, double max)
      Description copied from class: ImagePlus
      Sets the display range of the current channel. With non-composite images it is identical to ip.setMinAndMax(min, max).
      Overrides:
      setDisplayRange in class ImagePlus
    • getDisplayRangeMin

      public double getDisplayRangeMin()
      Overrides:
      getDisplayRangeMin in class ImagePlus
    • getDisplayRangeMax

      public double getDisplayRangeMax()
      Overrides:
      getDisplayRangeMax in class ImagePlus
    • resetDisplayRange

      public void resetDisplayRange()
      Overrides:
      resetDisplayRange in class ImagePlus
    • hasCustomLuts

      public boolean hasCustomLuts()
    • close

      public void close()
      Description copied from class: ImagePlus
      Closes this image and sets the ImageProcessor to null. To avoid the "Save changes?" dialog, first set the public 'changes' variable to false.
      Overrides:
      close in class ImagePlus
    • setChannelsUpdated

      public void setChannelsUpdated()
      Deprecated