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, realMin
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
hashCode, maskType, numDimensions
equals, numVertices, vertices
and, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xor
boundaryType, isAll, knownConstant
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMin
public 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 Polygon2D
equals
in interface MaskPredicate<RealLocalizable>
equals
in class Object
Copyright © 2014–2022 ImageJ. All rights reserved.