public class UnmodifiablePolygonRoiWrapper extends AbstractPolygonRoiWrapper implements Polygon2D
PolygonRoi of type Roi.FREEROI or
Roi.TRACED_ROI as an unmodifiable ImgLib2 Polygon2D.| Constructor and Description |
|---|
UnmodifiablePolygonRoiWrapper(PolygonRoi poly)
Wraps an ImageJ 1.x
PolygonRoi as an ImgLib2 Polygon2D. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
test(RealLocalizable t) |
RealLocalizable |
vertex(int pos) |
getRoi, numDimensions, numVertices, realMax, realMinclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waithashCode, maskType, numDimensionsequals, numVertices, verticesand, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xorboundaryType, isAll, knownConstantmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMinpublic UnmodifiablePolygonRoiWrapper(PolygonRoi poly)
PolygonRoi as an ImgLib2 Polygon2D.poly - the PolygonRoi to be wrappedpublic boolean test(RealLocalizable t)
Since PolygonRoi.contains(int, int) uses the "pnpoly" algorithm for
real space polygons, so does this implementation. Thus resulting in a
Polygon2D with unspecified boundary behavior.
test in interface Predicate<RealLocalizable>public RealLocalizable vertex(int pos)
public boolean equals(Object obj)
equals in interface Polygon2Dequals in interface MaskPredicate<RealLocalizable>equals in class ObjectCopyright © 2014–2022 ImageJ. All rights reserved.