public class IrregularPolylineRoiWrapper extends Object implements IJRealRoiWrapper<PolygonRoi>
PolygonRoi of type Roi.POLYLINE or
Roi.FREELINE with a non zero width as a RealMaskRealInterval.
This can also be used to wrap Roi.POLYLINE which have been spline
fitted.
This is only intended to wrap existing ImageJ 1.x Rois, not to create ImgLib2 Rois backed by ImageJ 1.x Rois.
| Constructor and Description |
|---|
IrregularPolylineRoiWrapper(PolygonRoi roi)
Creates a
RealMaskRealInterval which wraps the given Roi. |
| Modifier and Type | Method and Description |
|---|---|
BoundaryType |
boundaryType() |
PolygonRoi |
getRoi()
Returns the backing ImageJ 1.x
Roi. |
double |
realMax(int d) |
double |
realMin(int d) |
boolean |
test(RealLocalizable t) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnumDimensionsand, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xorequals, isAll, knownConstant, maskTypemaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPointpublic IrregularPolylineRoiWrapper(PolygonRoi roi)
RealMaskRealInterval which wraps the given Roi.roi - the Roi to be wrappedpublic boolean test(RealLocalizable t)
This includes some additional points near the vertices of the polyline.
test in interface Predicate<RealLocalizable>public BoundaryType boundaryType()
boundaryType in interface MaskPredicate<RealLocalizable>public PolygonRoi getRoi()
IJRoiWrapperRoi.getRoi in interface IJRoiWrapper<PolygonRoi,RealLocalizable>Roipublic double realMin(int d)
realMin in interface RealIntervalpublic double realMax(int d)
realMax in interface RealIntervalCopyright © 2014–2022 ImageJ. All rights reserved.