java.lang.Object
ij.ImagePlus
ij.CompositeImage
- All Implemented Interfaces:
Measurements
,ImageObserver
,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Display modes (note: TRANSPARENT mode has not yet been implemented)static final Color[]
static final int
Display modes (note: TRANSPARENT mode has not yet been implemented)static final int
Display modes (note: TRANSPARENT mode has not yet been implemented)static final int
static final int
Display 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this image and sets the ImageProcessor to null.void
void
Copies the LUTs and display mode of 'imp' to this image.createLutFromColor
(Color color) boolean[]
Returns the color used to display the image subtitle and "B&C" histogram.getChannelLut
(int channel) Returns a reference to the current ImageProcessor.double
double
getImage()
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.int
getMode()
getProcessor
(int channel) boolean
void
reset()
void
void
void
void
setChannelLut
(LUT table) void
setChannelLut
(LUT table, int channel) void
Deprecatedvoid
setDisplayRange
(double min, double max) Sets the display range of the current channel.void
void
setMode
(int mode) void
void
Updates this image from the pixel data in its associated ImageProcessor, then displays it.void
Updates this image from the pixel data in its associated ImageProcessor, then displays it.void
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, 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 Details
-
COMPOSITE
public static final int COMPOSITEDisplay modes (note: TRANSPARENT mode has not yet been implemented)- See Also:
-
COLOR
public static final int COLORDisplay modes (note: TRANSPARENT mode has not yet been implemented)- See Also:
-
GRAYSCALE
public static final int GRAYSCALEDisplay modes (note: TRANSPARENT mode has not yet been implemented)- See Also:
-
TRANSPARENT
public static final int TRANSPARENTDisplay modes (note: TRANSPARENT mode has not yet been implemented)- See Also:
-
MAX_CHANNELS
public static final int MAX_CHANNELS- See Also:
-
colors
-
-
Constructor Details
-
CompositeImage
-
CompositeImage
-
-
Method Details
-
getImage
Description copied from class:ImagePlus
Returns this image as a AWT image. -
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 classImagePlus
-
updateAllChannelsAndDraw
public void updateAllChannelsAndDraw() -
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 classImagePlus
-
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 classImagePlus
-
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 classImagePlus
-
createLutFromColor
-
getChannelColor
Returns the color used to display the image subtitle and "B&C" histogram. -
getProcessor
-
getActiveChannels
public boolean[] getActiveChannels() -
setMode
public void setMode(int mode) -
getMode
public int getMode() -
getModeAsString
-
getChannelLut
-
getChannelLut
-
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. -
setLuts
-
copyLuts
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
-
setChannelLut
-
setChannelColorModel
-
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 classImagePlus
-
getDisplayRangeMin
public double getDisplayRangeMin()- Overrides:
getDisplayRangeMin
in classImagePlus
-
getDisplayRangeMax
public double getDisplayRangeMax()- Overrides:
getDisplayRangeMax
in classImagePlus
-
resetDisplayRange
public void resetDisplayRange()- Overrides:
resetDisplayRange
in classImagePlus
-
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. -
setChannelsUpdated
public void setChannelsUpdated()Deprecated
-