- java.lang.Object
-
- ij.ImagePlus
-
- ij.CompositeImage
-
- All Implemented Interfaces:
Measurements,java.awt.image.ImageObserver,java.lang.Cloneable
public class CompositeImage extends ImagePlus
-
-
Field Summary
Fields Modifier and Type Field Description static intCOLORDisplay modes (note: TRANSPARENT mode has not yet been implemented)static java.awt.Color[]colorsstatic intCOMPOSITEDisplay modes (note: TRANSPARENT mode has not yet been implemented)static intGRAYSCALEDisplay modes (note: TRANSPARENT mode has not yet been implemented)static intMAX_CHANNELSstatic intTRANSPARENTDisplay modes (note: TRANSPARENT mode has not yet been implemented)-
Fields inherited from class ij.ImagePlus
changes, CLOSED, COLOR_256, COLOR_RGB, compositeImage, dimensionsSet, flattenTitle, GRAY16, GRAY32, GRAY8, height, img, ip, locked, nChannels, nFrames, nSlices, OPENED, roi, SAVED, setIJMenuBar, UPDATED, 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
ADD_TO_OVERLAY, ALL_STATS, AREA, AREA_FRACTION, CENTER_OF_MASS, CENTROID, CIRCULARITY, ELLIPSE, FERET, INTEGRATED_DENSITY, INVERT_Y, KURTOSIS, LABELS, LIMIT, MAX_STANDARDS, MEAN, MEDIAN, MIN_MAX, MODE, NaN_EMPTY_CELLS, PERIMETER, RECT, SCIENTIFIC_NOTATION, SHAPE_DESCRIPTORS, SKEWNESS, SLICE, STACK_POSITION, STD_DEV
-
-
Constructor Summary
Constructors Constructor Description CompositeImage(ImagePlus imp)CompositeImage(ImagePlus imp, int mode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes this image and sets the ImageProcessor to null.voidcompleteReset()voidcopyLuts(ImagePlus imp)Copies the LUTs and display mode of 'imp' to this image.LUTcreateLutFromColor(java.awt.Color color)boolean[]getActiveChannels()java.awt.ColorgetChannelColor()Returns the color used to display the image subtitle and "B&C" histogram.LUTgetChannelLut()LUTgetChannelLut(int channel)ImageProcessorgetChannelProcessor()Returns a reference to the current ImageProcessor.doublegetDisplayRangeMax()Returns the display range maximum of the current channel.doublegetDisplayRangeMin()Returns the display range minimum of the current channel.java.awt.ImagegetImage()Returns this image as a AWT image.LUT[]getLuts()Returns an array containing the lookup tables used by this image, one per channel, or an empty array if this is an RGB image.intgetMode()java.lang.StringgetModeAsString()ImageProcessorgetProcessor(int channel)booleanhasCustomLuts()voidreset()voidresetDisplayRange()voidresetDisplayRanges()voidsetChannelColorModel(java.awt.image.IndexColorModel cm)voidsetChannelLut(LUT table)voidsetChannelLut(LUT table, int channel)voidsetChannelsUpdated()DeprecatedvoidsetDisplayRange(double min, double max)Sets the display range of the current channel.voidsetLuts(LUT[] luts)voidsetMode(int mode)voidupdateAllChannelsAndDraw()voidupdateAndDraw()Updates this image from the pixel data in its associated ImageProcessor, then displays it.voidupdateChannelAndDraw()Updates this image from the pixel data in its associated ImageProcessor, then displays it.voidupdateImage()ImageCanvas.paint() calls this method when the ImageProcessor has generated a new image.-
Methods inherited from class ij.ImagePlus
addImageListener, clone, convertIndexToPosition, convertToImageProcessor, copy, copy, copyAttributes, copyScale, copyToSystem, createEmptyStack, createHyperStack, createImagePlus, createLut, createNewRoi, createRoiMask, createThresholdMask, crop, crop, crop, crop, cropAndSave, cut, deleteRoi, draw, draw, duplicate, flatten, flattenStack, flush, getAllStatistics, getBitDepth, getBufferedImage, getBytesPerPixel, getC, getCalibration, getCanvas, getChannel, getClipboard, getCompositeMode, getCurrentSlice, getDefault16bitRange, getDimensions, getDimensions, getDisplayMode, getFileInfo, getFrame, getGlobalCalibration, getHeight, getHideOverlay, getID, getImageProperties, getImageStack, getImageStackSize, getInfoProperty, getListeners, getLocalCalibration, getLocationAsString, getMask, getNChannels, getNDimensions, getNFrames, getNSlices, getNumericProp, getNumericProperty, getOpenAsHyperStack, getOriginalFileInfo, getOverlay, getPixel, getPlot, getProcessor, getProp, getProperties, getPropertiesAsArray, getProperty, getPropsInfo, getRawStatistics, getRoi, getShortTitle, getSizeInBytes, getSlice, getStack, getStackIndex, getStackSize, getStartTime, getStaticGlobalCalibration, getStatistics, getStatistics, getStatistics, getStatistics, getStringProperty, getT, getTitle, getType, getWidth, getWindow, getZ, hasImageStack, hide, imageUpdate, isComposite, isDisplayedHyperStack, isHyperStack, isInvertedLut, isLocked, isLockedByAnotherThread, isProcessor, isRGB, isStack, isThreshold, isVisible, killRoi, killStack, lock, lockSilently, logImageListeners, mouseMoved, notifyListeners, okToDeleteRoi, paste, paste, paste, plotHistogram, plotHistogram, removeImageListener, removeScale, repaintWindow, resetClipboard, resetRoi, resetStack, resize, resize, restoreRoi, revert, saveRoi, setActivated, setActiveChannels, setAntialiasRendering, setBorderColor, setC, setCalibration, setColor, setDeactivated, setDefault16bitRange, setDefaultDisplayRange, setDimensions, setDisplayMode, setDisplayRange, setFileInfo, setGlobalCalibration, setHideOverlay, setIgnoreFlush, setIgnoreGlobalCalibration, setIJMenuBar, setIJMenuBar, setImage, setImage, setLut, setOpenAsHyperStack, setOverlay, setOverlay, setOverlay, setPlot, setPosition, setPosition, setPositionWithoutUpdate, setProcessor, setProcessor, setProp, setProp, setProperties, setProperty, setRoi, setRoi, setRoi, setRoi, setSlice, setSliceWithoutUpdate, setStack, setStack, setStack, setT, setTemporary, setTitle, setType, setTypeToColor256, setWindow, setZ, show, show, startTiming, tempOverlay, toString, trimProcessor, unlock, updateAndRepaintWindow, updatePosition, updateStatusbarValue, updateVirtualSlice, waitTillActivated, windowActivated
-
-
-
-
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
-
MAX_CHANNELS
public static final int MAX_CHANNELS
- See Also:
- Constant Field Values
-
colors
public static final java.awt.Color[] colors
-
-
Method Detail
-
getImage
public java.awt.Image getImage()
Description copied from class:ImagePlusReturns this image as a AWT image.
-
updateChannelAndDraw
public void updateChannelAndDraw()
Description copied from class:ImagePlusUpdates 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:
updateChannelAndDrawin classImagePlus
-
updateAllChannelsAndDraw
public void updateAllChannelsAndDraw()
-
getChannelProcessor
public ImageProcessor getChannelProcessor()
Description copied from class:ImagePlusReturns a reference to the current ImageProcessor. The CompositeImage class overrides this method to return the processor associated with the current channel.- Overrides:
getChannelProcessorin classImagePlus
-
resetDisplayRanges
public void resetDisplayRanges()
-
updateAndDraw
public void updateAndDraw()
Description copied from class:ImagePlusUpdates 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:
updateAndDrawin classImagePlus
-
updateImage
public void updateImage()
Description copied from class:ImagePlusImageCanvas.paint() calls this method when the ImageProcessor has generated a new image.- Overrides:
updateImagein classImagePlus
-
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.
-
getProcessor
public ImageProcessor getProcessor(int channel)
-
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()
-
getLuts
public LUT[] getLuts()
Description copied from class:ImagePlusReturns an array containing the lookup tables used by this image, one per channel, or an empty array if this is an RGB image.
-
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:ImagePlusSets 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:
setDisplayRangein classImagePlus
-
getDisplayRangeMin
public double getDisplayRangeMin()
Description copied from class:ImagePlusReturns the display range minimum of the current channel.- Overrides:
getDisplayRangeMinin classImagePlus- See Also:
ImageProcessor.getMin(),ImagePlus.getLuts()
-
getDisplayRangeMax
public double getDisplayRangeMax()
Description copied from class:ImagePlusReturns the display range maximum of the current channel.- Overrides:
getDisplayRangeMaxin classImagePlus- See Also:
ImageProcessor.getMax(),ImagePlus.getLuts()
-
resetDisplayRange
public void resetDisplayRange()
- Overrides:
resetDisplayRangein classImagePlus
-
hasCustomLuts
public boolean hasCustomLuts()
-
close
public void close()
Description copied from class:ImagePlusCloses this image and sets the ImageProcessor to null. To avoid the "Save changes?" dialog, first set the public 'changes' variable to false.
-
setChannelsUpdated
public void setChannelsUpdated()
Deprecated
-
-