public abstract class AbstractPolygonRoiWrapper extends Object implements IJRealRoiWrapper<PolygonRoi>
PolygonRois (i.e. POLYGON, POLYLINE, FREELINE, etc.).| Constructor and Description |
|---|
AbstractPolygonRoiWrapper(float[] xPoints,
float[] yPoints,
int type)
Creates an ImageJ 1.x
PolygonRoi and wraps it as an ImgLib2
Mask. |
AbstractPolygonRoiWrapper(float[] xPoints,
float[] yPoints,
int nPoints,
int type)
|
AbstractPolygonRoiWrapper(int[] xPoints,
int[] yPoints,
int nPoints,
int type)
|
AbstractPolygonRoiWrapper(PolygonRoi poly)
Wraps an ImageJ 1.x
PolygonRoi as an ImgLib2 Mask. |
| Modifier and Type | Method and Description |
|---|---|
PolygonRoi |
getRoi()
Returns the backing ImageJ 1.x
Roi. |
int |
numDimensions() |
int |
numVertices() |
double |
realMax(int d) |
double |
realMin(int d) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xorboundaryType, equals, isAll, knownConstant, maskTypemaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPointpublic AbstractPolygonRoiWrapper(int[] xPoints,
int[] yPoints,
int nPoints,
int type)
xPoints - x coordinates of the verticesyPoints - y coordinates of the verticesnPoints - number of verticestype - denotes if PolygonRoi behaves as Roi.POLYGON or
Roi.POLYLINEpublic AbstractPolygonRoiWrapper(float[] xPoints,
float[] yPoints,
int nPoints,
int type)
xPoints - x coordinates of the verticesyPoints - y coordinates of the verticesnPoints - number of verticestype - denotes if PolygonRoi behaves as Roi.POLYGON or
Roi.POLYLINEpublic AbstractPolygonRoiWrapper(float[] xPoints,
float[] yPoints,
int type)
PolygonRoi and wraps it as an ImgLib2
Mask. The length of xPoints will be used to determine the
number of vertices this Mask has.xPoints - x coordinates of the verticesyPoints - y coordinates of the verticestype - denotes if PolygonRoi behaves as Roi.POLYGON or
Roi.POLYLINEpublic AbstractPolygonRoiWrapper(PolygonRoi poly)
PolygonRoi as an ImgLib2 Mask.poly - the PolygonRoi to be wrappedpublic double realMin(int d)
realMin in interface RealIntervalpublic double realMax(int d)
realMax in interface RealIntervalpublic int numVertices()
public PolygonRoi getRoi()
IJRoiWrapperRoi.getRoi in interface IJRoiWrapper<PolygonRoi,RealLocalizable>Roipublic int numDimensions()
numDimensions in interface IJRoiWrapper<PolygonRoi,RealLocalizable>numDimensions in interface EuclideanSpaceCopyright © 2014–2022 ImageJ. All rights reserved.