Uses of Class
ij.gui.Roi
Packages that use Roi
Package
Description
-
Uses of Roi in ij
Modifier and TypeMethodDescriptionImagePlus.getRoi()Returns the current selection, or null if there is no selection.static RoiIJ.Roi(double x, double y, double width, double height) Creates an Roi.Modifier and TypeMethodDescriptionMulti-roi cropping with default "slice" option.Returns an array of cropped images based on the provided list of rois.voidImagePlus.cropAndSave(Roi[] rois, String directory, String format) Saves the contents of the ROIs in this overlay as separate images, where 'directory' is the directory path and 'format' is "tif", "png" or "jpg".voidImagePlus.setOverlay(Roi roi, Color strokeColor, int strokeWidth, Color fillColor) Creates an Overlay from the specified ROI, and assigns it to this image.voidAssigns the specified ROI to this image and displays it.voidAssigns 'newRoi' to this image and displays it if 'updateDisplay' is true. -
Uses of Roi in ij.gui
Modifier and TypeClassDescriptionclassThis is an Roi subclass for creating and displaying arrows.classThis class implements the ellipse selection tool.classFreehand region of interest or freehand line of interestclassAn ImageRoi is an Roi that overlays an image.classThis class represents a straight line selection.classOval region of interestclassThis class represents a collection of points that can be associated with counters.classThis class represents a polygon region of interest or polyline of interest.classThis class implements the rotated rectangle selection tool.classA subclass ofij.gui.Roi(2D Regions Of Interest) implemented in terms of java.awt.Shape.classThis class is a rectangular ROI containing text.Modifier and TypeFieldDescriptionstatic RoiRoi.previousRoiGet using getPreviousRoi() and set using setPreviousRoi()Modifier and TypeMethodDescriptionstatic RoiRoi.convertLineToArea(Roi line) Converts a line selection into an area (polygon or composite) selection.
Author: Michael SchmidRoi.convertToPolygon()Deprecated.static RoiRoi.create(double x, double y, double width, double height) Creates a rectangular ROI.static RoiRoi.create(double x, double y, double width, double height, int cornerDiameter) Creates a rounded rectangular ROI.Overlay.get(int index) Returns the ROI with the specified index or null if the index is invalid.Returns the ROI with the specified name or null if not found.Roi.getInverse(ImagePlus imp) Returns the inverted roi, or null if this is not an area roi or cannot be converted to a ShapeRoi.static RoiRoi.getPreviousRoi()Returns the Roi saved by setPreviousRoi().Roi[]ShapeRoi.getRois()Converts a Shape into Roi object(s).ShapeRoi.shapeToRoi()Attempts to convert this ShapeRoi into a single non-composite Roi.Roi[]Overlay.toArray()Returns on array containing the ROIs in this Overlay.Roi[]Overlay.toArray(int[] indexes) Returns on array containing the ROIs with the specified indexes.ShapeRoi.trySimplify()Attempts to convert this ShapeRoi into a single non-composite Roi.Overlay.xor(int[] indexes) Returns the bounds of this overlay.static RoiModifier and TypeMethodDescriptionvoidAdds an ROI to this Overlay.voidAdds an ROI to this Overlay using the specified name.voidOverlay.addElement(Roi roi) Adds an ROI to this Overlay.PointRoi.containedPoints(Roi roi) Returns the points of this Roi that are contained in the specified area ROI.booleanReturns 'true' if this Overlay contains the specified ROI.static RoiRoi.convertLineToArea(Roi line) Converts a line selection into an area (polygon or composite) selection.
Author: Michael SchmidvoidArrow.copyAttributes(Roi roi2) voidPointRoi.copyAttributes(Roi roi2) voidRoi.copyAttributes(Roi roi2) Copy the attributes (outline color, fill color, outline width) of 'roi2' to the this selection.static OverlayOverlay.createStackOverlay(Roi[] rois) voidRemoves the specified ROI from this Overlay.booleanImageCanvas.roiManagerSelect(Roi roi, boolean delete) voidReplaces the ROI at the specified index.voidImageCanvas.setDisplayList(Roi roi, Color color) Deprecated.replaced by ImagePlus.setOverlay(Roi, Color, int, Color)static voidRoi.setPreviousRoi(Roi roi) Saves 'roi' so it can be restored later using Edit/Selection/Restore Selection.voidTextRoi.setPreviousTextRoi(Roi previousRoi) PointRoi.subtractPoints(Roi roi) Returns the points of this Roi that are not contained in the specified area ROI.static Roi -
Uses of Roi in ij.io
Modifier and TypeMethodDescriptionRoiDecoder.getRoi()Returns the ROI.RoiDecoder.getShapeRoi()static RoiOpens the Roi at the specified path.static RoiRoiDecoder.openFromByteArray(byte[] bytes) Opens an ROI from a byte array.Attempts to open the specified ROI, returning null if unsuccessful.Modifier and TypeMethodDescriptionstatic booleanSaves the specified ROI as a file, returning 'true' if successful.static byte[]RoiEncoder.saveAsByteArray(Roi roi) Saves the specified ROI as a byte array.voidSave the Roi to the file of stream. -
Uses of Roi in ij.measure
Methods in ij.measure with parameters of type Roi -
Uses of Roi in ij.plugin
Modifier and TypeMethodDescriptionstatic Roistatic RoiRoiEnlarger.enlarge255(Roi roi, double pixels) static RoiSelection.lineToArea(Roi roi) Converts a line selection into an area selection.static Roistatic Roistatic RoiModifier and TypeMethodDescriptionstatic Roistatic RoiRoiEnlarger.enlarge255(Roi roi, double pixels) static RoiSelection.lineToArea(Roi roi) Converts a line selection into an area selection.static voidstatic Roistatic Roistatic RoiStraightener.straighten(ImagePlus imp, Roi roi, int width) Straightener.straightenStack(ImagePlus imp, Roi roi, int width) -
Uses of Roi in ij.plugin.filter
Methods in ij.plugin.filter that return RoiModifier and TypeMethodDescriptionThresholdToSelection.convert(ImageProcessor ip) Returns a selection created from the thresholded pixels in the specified image, or null if there are no thresholded pixels.static RoiReturns a selection created from the thresholded pixels in the specified image, or null if there are no thresholded pixels.Methods in ij.plugin.filter with parameters of type RoiModifier and TypeMethodDescriptionprotected voidParticleAnalyzer.drawParticle(ImageProcessor drawIP, Roi roi, ImageStatistics stats, ImageProcessor mask) Draws a selected particle in a separate image.voidAnalyzer.saveResults(ImageStatistics stats, Roi roi) Saves the measurements specified in the "Set Measurements" dialog, or by calling setMeasurements(), in the default results table.protected voidParticleAnalyzer.saveResults(ImageStatistics stats, Roi roi) Saves statistics for one particle in a results table. -
Uses of Roi in ij.plugin.frame
Methods in ij.plugin.frame that return RoiModifier and TypeMethodDescriptionRoiManager.getRoi(int index) Returns a reference to the ROI at the specified index.Roi[]RoiManager.getRoisAsArray()Returns the ROIs as an array.Roi[]RoiManager.getSelectedRoisAsArray()Returns the selected ROIs as an array, or all the ROIs if none are selected.Methods in ij.plugin.frame that return types with arguments of type RoiMethods in ij.plugin.frame with parameters of type RoiModifier and TypeMethodDescriptionvoidAdds the specified ROI to the list.voidAdds the specified ROI to the list.voidAdds the specified ROI.voidDeselect the specified ROI if it is the only one selected.intRoiManager.getRoiIndex(Roi roi) Returns the index of the specified Roi, or -1 if it is not found.static ResultsTableRoiManager.multiMeasure(ImagePlus imp, Roi[] rois, boolean appendResults) static voidvoidvoidReplaces the ROI at the specified index. -
Uses of Roi in ij.process
Methods in ij.process with parameters of type RoiModifier and TypeMethodDescriptionvoidDraws the specified ROI on this image using the line width and color defined by ip.setLineWidth() and ip.setColor().voidDraws the specified ROI on this image using the stroke width, stroke color and fill color defined by roi.setStrokeWidth, roi.setStrokeColor() and roi.setFillColor().voidFills the ROI with the current fill/draw value.voidImageProcessor.fillOutside(Roi roi) Fills outside an Roi.voidvoidDefines a non-rectangular region of interest that will consist of a rectangular ROI and a mask.