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

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    A boolean used to know whether a Roi can be created or not.
    protected Vector<ij.gui.Roi>
    Vector containing all interior Rois
    protected Vector<ij.gui.Roi>
    Vector containing all exterior Rois
    protected Vector<ij.gui.Roi>
    Vector containing all Rois
    protected Vector<ij.gui.Roi>
    Vector containing all selected Rois
    protected ij.gui.Roi
    The only selected interior/exterior Roi

    Fields 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, 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
     
     
    AdvancedImagePlus(String title, ij.ImageStack stack)
     
    AdvancedImagePlus(String title, ij.process.ImageProcessor ip)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addRoi(ij.gui.Roi roi)
     
    void
    createNewRoi(int sx, int sy)
     
    void
     
    Vector<ij.gui.Roi>
     
    Vector<ij.gui.Roi>
     
    Vector<ij.gui.Roi>
     
    Vector<ij.gui.Roi>
     
    ij.gui.Roi
     
    boolean
     
    void
     
    void
    removeRoi(ij.gui.Roi roi)
     
    void
    setAllowRoiCreation(boolean allowRoiCreation)
     
    void
    setHandledRoi(ij.gui.Roi handledRoi)
     
    void
     
    void
    setRoi(ij.gui.Roi newRoi)
     
    void
    setSelectedRoi(ij.gui.Roi selectedRoi)
     
    void
    setSelectedRois(Vector<ij.gui.Roi> selectedRois)
     
    void
    setValidatedRoi(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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • roiVector

      protected Vector<ij.gui.Roi> roiVector
      Vector containing all Rois
    • selectedRois

      protected Vector<ij.gui.Roi> selectedRois
      Vector containing all selected Rois
    • innerRois

      protected Vector<ij.gui.Roi> innerRois
      Vector containing all interior Rois
    • outerRois

      protected Vector<ij.gui.Roi> outerRois
      Vector containing all exterior Rois
    • validatedRoi

      protected ij.gui.Roi validatedRoi
      The only selected interior/exterior Roi
    • allowRoiCreation

      protected boolean allowRoiCreation
      A 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

      public AdvancedImagePlus(String title, Image img)
    • AdvancedImagePlus

      public AdvancedImagePlus(String title, ij.process.ImageProcessor ip)
    • AdvancedImagePlus

      public AdvancedImagePlus(String title, ij.ImageStack stack)
    • AdvancedImagePlus

      public AdvancedImagePlus(String pathOrURL)
  • Method Details

    • setImage

      public void setImage(Image img)
      Overrides:
      setImage in class ij.ImagePlus
    • setRoi

      public void setRoi(ij.gui.Roi newRoi)
      Overrides:
      setRoi in class ij.ImagePlus
    • killRoi

      public void killRoi()
      Overrides:
      killRoi in class ij.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:
      createNewRoi in class ij.ImagePlus
    • addRoi

      public void addRoi(ij.gui.Roi roi)
    • removeRoi

      public void removeRoi(ij.gui.Roi roi)
    • getAllRois

      public Vector<ij.gui.Roi> getAllRois()
    • getSelectedRois

      public Vector<ij.gui.Roi> getSelectedRois()
      Returns:
      the selectedRois
    • setSelectedRois

      public void setSelectedRois(Vector<ij.gui.Roi> selectedRois)
      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

      public Vector<ij.gui.Roi> getInnerRois()
      Returns:
      the innerRois
    • getOuterRois

      public Vector<ij.gui.Roi> 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