Module ij
Package ij

Class CompositeImage

  • All Implemented Interfaces:
    Measurements, java.awt.image.ImageObserver, java.lang.Cloneable

    public class CompositeImage
    extends ImagePlus
    • Field Detail

      • COMPOSITE

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

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

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

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

        public static final java.awt.Color[] colors
    • Constructor Detail

      • CompositeImage

        public CompositeImage​(ImagePlus imp)
      • CompositeImage

        public CompositeImage​(ImagePlus imp,
                              int mode)
    • Method Detail

      • getImage

        public java.awt.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 a new image.
        Overrides:
        updateImage in class ImagePlus
      • createLutFromColor

        public LUT createLutFromColor​(java.awt.Color color)
      • getChannelColor

        public java.awt.Color getChannelColor()
        Returns the color used to display the image subtitle and "B&C" histogram.
      • getActiveChannels

        public boolean[] getActiveChannels()
      • setMode

        public void setMode​(int mode)
      • getMode

        public int getMode()
      • getModeAsString

        public java.lang.String getModeAsString()
      • getChannelLut

        public LUT getChannelLut​(int channel)
      • getChannelLut

        public LUT getChannelLut()
      • 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()
      • completeReset

        public void completeReset()
      • setChannelLut

        public void setChannelLut​(LUT table)
      • setChannelLut

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

        public void setChannelColorModel​(java.awt.image.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). Call updateAndDraw() to update the display.
        Overrides:
        setDisplayRange 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