Package fr.esrf.tangoatk.widget.util
Class AdvancedImagePlus
java.lang.Object
ij.ImagePlus
fr.esrf.tangoatk.widget.util.AdvancedImagePlus
- All Implemented Interfaces:
ij.measure.Measurements,ImageObserver,Cloneable
public class AdvancedImagePlus
extends ij.ImagePlus
An ImagePlus with multi Roi management.
- Author:
- GIRARDOT
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanA boolean used to know whether a Roi can be created or not.protected Vector<ij.gui.Roi>Vector containing all interior Roisprotected Vector<ij.gui.Roi>Vector containing all exterior Roisprotected Vector<ij.gui.Roi>Vector containing all Roisprotected Vector<ij.gui.Roi>Vector containing all selected Roisprotected ij.gui.RoiThe only selected interior/exterior RoiFields inherited from class ij.ImagePlus
changes, CLOSED, COLOR_256, COLOR_RGB, compositeImage, currentSlice, dimensionsSet, flattenTitle, GRAY16, GRAY32, GRAY8, height, img, ip, locked, nChannels, nFrames, nSlices, OPENED, roi, SAVED, setIJMenuBar, UPDATED, width, winFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields 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
ConstructorsConstructorDescriptionAdvancedImagePlus(String pathOrURL) AdvancedImagePlus(String title, ij.ImageStack stack) AdvancedImagePlus(String title, ij.process.ImageProcessor ip) AdvancedImagePlus(String title, Image img) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRoi(ij.gui.Roi roi) voidcreateNewRoi(int sx, int sy) voidVector<ij.gui.Roi>Vector<ij.gui.Roi>Vector<ij.gui.Roi>Vector<ij.gui.Roi>ij.gui.RoibooleanvoidkillRoi()voidremoveRoi(ij.gui.Roi roi) voidsetAllowRoiCreation(boolean allowRoiCreation) voidsetHandledRoi(ij.gui.Roi handledRoi) voidvoidsetRoi(ij.gui.Roi newRoi) voidsetSelectedRoi(ij.gui.Roi selectedRoi) voidsetSelectedRois(Vector<ij.gui.Roi> selectedRois) voidsetValidatedRoi(ij.gui.Roi validatedRoi) Methods inherited from class ij.ImagePlus
addImageListener, clone, close, convertIndexToPosition, convertToImageProcessor, copy, copy, copyAttributes, copyScale, copyToSystem, createEmptyStack, createHyperStack, createImagePlus, createLut, createRoiMask, createThresholdMask, crop, crop, crop, crop, cropAndSave, cut, deleteRoi, draw, draw, duplicate, flatten, flattenStack, flush, getAllStatistics, getBitDepth, getBufferedImage, getBytesPerPixel, getC, getCalibration, getCanvas, getChannel, getChannelProcessor, getClipboard, getCompositeMode, getCurrentSlice, getDefault16bitRange, getDimensions, getDimensions, getDisplayMode, getDisplayRangeMax, getDisplayRangeMin, getFileInfo, getFrame, getGlobalCalibration, getHeight, getHideOverlay, getID, getImage, getImageProperties, getImageStack, getImageStackSize, getInfoProperty, getListeners, getLocalCalibration, getLocationAsString, getLuts, 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, killStack, lock, lockSilently, logImageListeners, mouseMoved, notifyListeners, okToDeleteRoi, paste, paste, paste, plotHistogram, plotHistogram, removeImageListener, removeScale, repaintWindow, resetClipboard, resetDisplayRange, resetRoi, resetStack, resize, resize, restoreRoi, revert, saveRoi, setActivated, setActiveChannels, setAntialiasRendering, setAutoThreshold, setBorderColor, setC, setCalibration, setColor, setDeactivated, setDefault16bitRange, setDefaultDisplayRange, setDimensions, setDisplayMode, setDisplayRange, setDisplayRange, setFileInfo, setGlobalCalibration, setHideOverlay, setIgnoreFlush, setIgnoreGlobalCalibration, setIJMenuBar, setIJMenuBar, setImage, setLut, setOpenAsHyperStack, setOverlay, setOverlay, setOverlay, setPlot, setPosition, setPosition, setPositionWithoutUpdate, setProcessor, setProcessor, setProp, setProp, setProperties, setProperty, setRoi, setRoi, setRoi, setSlice, setSliceWithoutUpdate, setStack, setStack, setStack, setT, setTemporary, setTitle, setType, setTypeToColor256, setWindow, setZ, show, show, startTiming, tempOverlay, toggleOverlay, toString, trimProcessor, unlock, updateAndDraw, updateAndRepaintWindow, updateChannelAndDraw, updateImage, updatePosition, updateStatusbarValue, updateVirtualSlice, waitTillActivated, windowActivated
-
Field Details
-
roiVector
Vector containing all Rois -
selectedRois
Vector containing all selected Rois -
innerRois
Vector containing all interior Rois -
outerRois
Vector containing all exterior Rois -
validatedRoi
protected ij.gui.Roi validatedRoiThe only selected interior/exterior Roi -
allowRoiCreation
protected boolean allowRoiCreationA boolean used to know whether a Roi can be created or not. This is a trick used for selection mode.
-
-
Constructor Details
-
AdvancedImagePlus
public AdvancedImagePlus() -
AdvancedImagePlus
-
AdvancedImagePlus
-
AdvancedImagePlus
-
AdvancedImagePlus
-
-
Method Details
-
setImage
- Overrides:
setImagein classij.ImagePlus
-
setRoi
public void setRoi(ij.gui.Roi newRoi) - Overrides:
setRoiin classij.ImagePlus
-
killRoi
public void killRoi()- Overrides:
killRoiin classij.ImagePlus
-
setSelectedRoi
public void setSelectedRoi(ij.gui.Roi selectedRoi) -
setHandledRoi
public void setHandledRoi(ij.gui.Roi handledRoi) -
createNewRoi
public void createNewRoi(int sx, int sy) - Overrides:
createNewRoiin classij.ImagePlus
-
addRoi
public void addRoi(ij.gui.Roi roi) -
removeRoi
public void removeRoi(ij.gui.Roi roi) -
getAllRois
-
getSelectedRois
- Returns:
- the selectedRois
-
setSelectedRois
- Parameters:
selectedRois- the selectedRois to set
-
deleteSelectedRois
public void deleteSelectedRois() -
isAllowRoiCreation
public boolean isAllowRoiCreation()- Returns:
- the allowRoiCreation
-
setAllowRoiCreation
public void setAllowRoiCreation(boolean allowRoiCreation) - Parameters:
allowRoiCreation- the allowRoiCreation to set
-
getInnerRois
- Returns:
- the innerRois
-
getOuterRois
- Returns:
- the outerRois
-
getValidatedRoi
public ij.gui.Roi getValidatedRoi()- Returns:
- the validatedRoi
-
setValidatedRoi
public void setValidatedRoi(ij.gui.Roi validatedRoi) - Parameters:
validatedRoi- the validatedRoi to set
-