public abstract class AbstractPolygonRoiWrapper extends Object implements IJRealRoiWrapper<PolygonRoi>
PolygonRoi
s (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, wait
and, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xor
boundaryType, equals, isAll, knownConstant, maskType
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
public 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.POLYLINE
public 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.POLYLINE
public 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.POLYLINE
public AbstractPolygonRoiWrapper(PolygonRoi poly)
PolygonRoi
as an ImgLib2 Mask
.poly
- the PolygonRoi
to be wrappedpublic double realMin(int d)
realMin
in interface RealInterval
public double realMax(int d)
realMax
in interface RealInterval
public int numVertices()
public PolygonRoi getRoi()
IJRoiWrapper
Roi
.getRoi
in interface IJRoiWrapper<PolygonRoi,RealLocalizable>
Roi
public int numDimensions()
numDimensions
in interface IJRoiWrapper<PolygonRoi,RealLocalizable>
numDimensions
in interface EuclideanSpace
Copyright © 2014–2022 ImageJ. All rights reserved.