|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.core.imageJ.RoiManagerAdapter
public class RoiManagerAdapter
Convenience functions for interaction with ImageJ's ROI manager.
This class is implemented as singleton. To access its functionality, use the getAdapter() function to get the singleton instance and call its methods.
Method Summary | |
---|---|
void |
addBordersToRoiManager(MTBBorder2DSet borders)
Adds a set of 2D borders to the ROI manager. |
void |
addContoursToRoiManager(MTBContour2DSet conts)
Adds a set of 2D contours to the ROI manager. |
void |
addPolygonsToRoiManager(MTBPolygon2DSet polys)
Adds a set of polygons to the ROI manager. |
void |
addPolygonToRoiManager(MTBPolygon2D poly)
Adds the given polygon to the ROI manager. |
void |
addRegionsToRoiManager(MTBRegion2DSet regs)
Adds a set of 2D regions to the ROI manager. |
boolean |
areRegionsInManagerAvailable()
Returns true if there are regions available in ROI manager. |
MTBBorder2DSet |
getBorderSetFromRoiManager()
Reads a ROI manager selection into a set of borders. |
MTBContour2DSet |
getContourSetFromRoiManager()
Reads a ROI manager selection into a set of contours. |
static RoiManagerAdapter |
getInstance()
Single access point for singleton functionality. |
MTBPolygon2DSet |
getPolygonSetFromRoiFile(String file,
boolean asSnakes)
Reads an ImageJ roi file into a set of polygons/snakes. |
MTBPolygon2DSet |
getPolygonSetFromRoiManager()
Reads ROI manager selections into a set of polygons/snakes. |
MTBRegion2DSet |
getRegionSetFromRoiFile(String file)
Reads an ImageJ roi file into a set of regions. |
MTBRegion2DSet |
getRegionSetFromRoiFile(String file,
double xMin,
double yMin,
double xMax,
double yMax)
Reads an ImageJ roi file into a set of regions. |
MTBRegion2DSet |
getRegionSetFromRoiManager()
Reads a ROI manager selection into a set of regions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RoiManagerAdapter getInstance()
public void addPolygonToRoiManager(MTBPolygon2D poly)
poly
- Polygon to be added to ROI manager.public void addPolygonsToRoiManager(MTBPolygon2DSet polys)
Note that the set is destroyed by this operation, i.e. it cannot be recovered lateron from the ROI manager as it does not support to group several polygons into a logic entity.
polys
- Set of polygons to be added to ROI manager.public void addRegionsToRoiManager(MTBRegion2DSet regs)
regs
- Set of regions to be added to ROI manager.public void addContoursToRoiManager(MTBContour2DSet conts)
conts
- Set of contours to be added to ROI manager.public void addBordersToRoiManager(MTBBorder2DSet borders)
borders
- Set of borders to be added to ROI manager.public MTBRegion2DSet getRegionSetFromRoiFile(String file) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
file
- Input file.
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
public MTBRegion2DSet getRegionSetFromRoiFile(String file, double xMin, double yMin, double xMax, double yMax) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
file
- Input file.xMin
- Minimal x value of user-specified domain.yMin
- Minimal y value of user-specified domain.xMax
- Maximal x value of user-specified domain.yMax
- Maximal y value of user-specified domain.
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
public MTBPolygon2DSet getPolygonSetFromRoiFile(String file, boolean asSnakes) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
file
- Input file.asSnakes
- If true, function returns snakes, otherwise polygons.
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
public MTBPolygon2DSet getPolygonSetFromRoiManager()
public MTBRegion2DSet getRegionSetFromRoiManager()
public MTBContour2DSet getContourSetFromRoiManager()
public MTBBorder2DSet getBorderSetFromRoiManager()
public boolean areRegionsInManagerAvailable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |