public class ROIHandler extends Object
Constructor and Description |
---|
ROIHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
openROIs(IMetadata retrieve,
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,
ImagePlus[] images,
boolean isOMERO) |
private static int[][] |
parsePoints(String points)
Parse (x, y) coordinates from a String returned by
MetadataRetrieve.getPolygonpoints(...) or
MetadataRetrieve.getPolylinepoints(...)
|
static Roi[] |
readFromOverlays() |
static Roi[] |
readFromRoiManager() |
static void |
saveROIs(MetadataStore store)
Save ROIs in the ROI manager to the given MetadataStore.
|
private static void |
storeLine(Line roi,
MetadataStore store,
int roiNum,
int shape)
Store a Line ROI in the given MetadataStore.
|
private static void |
storeOval(OvalRoi roi,
MetadataStore store,
int roiNum,
int shape)
Store an Oval ROI in the given MetadataStore.
|
private static void |
storePoint(PointRoi roi,
MetadataStore store,
int roiNum,
int shape) |
private static void |
storePolygon(PolygonRoi roi,
MetadataStore store,
int roiNum,
int shape)
Store a Polygon ROI in the given MetadataStore.
|
private static void |
storeRectangle(Roi roi,
MetadataStore store,
int roiNum,
int shape)
Store an Roi (rectangle) in the given MetadataStore.
|
private static void |
storeText(TextRoi roi,
MetadataStore store,
int roiNum,
int shape) |
private static Color |
toOMExmlColor(Color color) |
private static NonNegativeInteger |
unwrap(int r) |
public static void openROIs(IMetadata retrieve, ImagePlus[] images)
public static Roi[] readFromRoiManager()
public static Roi[] readFromOverlays()
public static void saveROIs(MetadataStore store)
private static NonNegativeInteger unwrap(int r)
private static void storeText(TextRoi roi, MetadataStore store, int roiNum, int shape)
private static void storePoint(PointRoi roi, MetadataStore store, int roiNum, int shape)
private static void storeLine(Line roi, MetadataStore store, int roiNum, int shape)
private static void storeRectangle(Roi roi, MetadataStore store, int roiNum, int shape)
private static void storePolygon(PolygonRoi roi, MetadataStore store, int roiNum, int shape)
private static void storeOval(OvalRoi roi, MetadataStore store, int roiNum, int shape)
private static int[][] parsePoints(String points)
Copyright © 2015 Open Microscopy Environment