public class ROIHandler extends Object
Constructor and Description |
---|
ROIHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
openROIs(IMetadata retrieve,
ij.ImagePlus[] images)
Look for ROIs in the given OMEXMLMetadata; if any are present, apply
them to the given images and display them in the ROI manager.
|
static void |
openROIs(IMetadata retrieve,
ij.ImagePlus[] images,
boolean isOMERO)
Opens the rois and converts them into ImageJ Rois.
|
static void |
openROIs(IMetadata retrieve,
ij.ImagePlus[] images,
boolean isOMERO,
String roisMode)
Opens the rois and converts them into ImageJ Rois.
|
static Roi[] |
readFromOverlays()
Returns rois if any from the overlay.
|
static Roi[] |
readFromRoiManager()
Returns the rois if any stored in the ROI manager.
|
static void |
saveROIs(MetadataStore store)
Save ROIs in the ROI manager to the given MetadataStore.
|
public static void openROIs(IMetadata retrieve, ij.ImagePlus[] images)
public static void openROIs(IMetadata retrieve, ij.ImagePlus[] images, boolean isOMERO)
retrieve
- The OMEXML store.images
- The imageJ object.isOMERO
- true
if data stored in OMERO,
false
otherwise.public static void openROIs(IMetadata retrieve, ij.ImagePlus[] images, boolean isOMERO, String roisMode)
retrieve
- The OMEXML store.images
- The imageJ object.isOMERO
- true
if data stored in OMERO,
false
otherwise.roisMode
- Determines whether to import Rois to overlay or RoiManagerpublic static Roi[] readFromRoiManager()
public static Roi[] readFromOverlays()
public static void saveROIs(MetadataStore store)
store
- Where to store the rois.Copyright © 2015–2021 Fiji. All rights reserved.