public class UnmodifiablePolygonRoiWrapper extends AbstractPolygonRoiWrapper implements net.imglib2.roi.geom.real.Polygon2D
PolygonRoi of type Roi.FREEROI or
Roi.TRACED_ROI as an unmodifiable ImgLib2 Polygon2D.| Constructor and Description |
|---|
UnmodifiablePolygonRoiWrapper(ij.gui.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(net.imglib2.RealLocalizable t)
Since
PolygonRoi.contains(int, int) uses the "pnpoly" algorithm for
real space polygons, so does this implementation. |
net.imglib2.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, xornegate, or, transform, xorboundaryType, isAll, knownConstantmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMinpublic UnmodifiablePolygonRoiWrapper(ij.gui.PolygonRoi poly)
PolygonRoi as an ImgLib2 Polygon2D.poly - the PolygonRoi to be wrappedpublic boolean test(net.imglib2.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<net.imglib2.RealLocalizable>public net.imglib2.RealLocalizable vertex(int pos)
vertex in interface net.imglib2.roi.geom.real.Polyshapepublic boolean equals(Object obj)
equals in interface net.imglib2.roi.geom.real.Polygon2Dequals in interface net.imglib2.roi.MaskPredicate<net.imglib2.RealLocalizable>equals in class ObjectCopyright © 2009–2025 ImageJ. All rights reserved.