public class IrregularPolylineRoiWrapper extends Object implements IJRealRoiWrapper<ij.gui.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(ij.gui.PolygonRoi roi)
Creates a
RealMaskRealInterval which wraps the given Roi. |
| Modifier and Type | Method and Description |
|---|---|
net.imglib2.roi.BoundaryType |
boundaryType() |
ij.gui.PolygonRoi |
getRoi()
Returns the backing ImageJ 1.x
Roi. |
double |
realMax(int d) |
double |
realMin(int d) |
boolean |
test(net.imglib2.RealLocalizable t)
This includes some additional points near the vertices of the polyline.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnumDimensionsand, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xornegate, or, transform, xorequals, isAll, knownConstant, maskTypemaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPointpublic IrregularPolylineRoiWrapper(ij.gui.PolygonRoi roi)
RealMaskRealInterval which wraps the given Roi.roi - the Roi to be wrappedpublic boolean test(net.imglib2.RealLocalizable t)
This includes some additional points near the vertices of the polyline.
test in interface Predicate<net.imglib2.RealLocalizable>public net.imglib2.roi.BoundaryType boundaryType()
boundaryType in interface net.imglib2.roi.MaskPredicate<net.imglib2.RealLocalizable>public ij.gui.PolygonRoi getRoi()
IJRoiWrapperRoi.getRoi in interface IJRoiWrapper<ij.gui.PolygonRoi,net.imglib2.RealLocalizable>Roipublic double realMin(int d)
realMin in interface net.imglib2.RealIntervalpublic double realMax(int d)
realMax in interface net.imglib2.RealIntervalCopyright © 2009–2025 ImageJ. All rights reserved.