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, wait
numDimensions
and, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xor
equals, isAll, knownConstant, maskType
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
public 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()
IJRoiWrapper
Roi
.getRoi
in interface IJRoiWrapper<PolygonRoi,RealLocalizable>
Roi
public double realMin(int d)
realMin
in interface RealInterval
public double realMax(int d)
realMax
in interface RealInterval
Copyright © 2014–2022 ImageJ. All rights reserved.