public class DefaultRoiWrapper<R extends Roi> extends Object implements IJRoiWrapper<R,Localizable>, MaskInterval
Roi as a MaskInterval. The test(...) method
of this class, simply calls contains(...) on the underlying ImageJ
1.x Roi. This is intended to wrap existing ImageJ 1.x Rois which do not
translate well to existing Imglib2 interfaces.| Constructor and Description |
|---|
DefaultRoiWrapper(R roi)
Creates a
MaskInterval which wraps the given Roi. |
| Modifier and Type | Method and Description |
|---|---|
long |
dimension(int d) |
void |
dimensions(long[] dimensions) |
R |
getRoi()
Returns the backing ImageJ 1.x
Roi. |
long |
max(int d) |
void |
max(long[] max) |
void |
max(Positionable max) |
long |
min(int d) |
void |
min(long[] min) |
void |
min(Positionable min) |
int |
numDimensions() |
void |
realMax(double[] max) |
double |
realMax(int d) |
void |
realMax(RealPositionable max) |
void |
realMin(double[] min) |
double |
realMin(int d) |
void |
realMin(RealPositionable min) |
boolean |
test(Localizable t) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitboundaryType, equals, isAll, knownConstant, maskTypemaxAsLongArray, maxAsPoint, minAsLongArray, minAsPointmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPointallPositive, allPositive, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositivepublic DefaultRoiWrapper(R roi)
MaskInterval which wraps the given Roi.roi - the Roi to be wrappedpublic int numDimensions()
numDimensions in interface IJRoiWrapper<R extends Roi,Localizable>numDimensions in interface EuclideanSpacepublic boolean test(Localizable t)
test in interface Predicate<Localizable>public void min(Positionable min)
public void max(Positionable max)
public double realMin(int d)
realMin in interface IntervalrealMin in interface RealIntervalpublic void realMin(double[] min)
realMin in interface RealIntervalpublic void realMin(RealPositionable min)
realMin in interface RealIntervalpublic double realMax(int d)
realMax in interface IntervalrealMax in interface RealIntervalpublic void realMax(double[] max)
realMax in interface RealIntervalpublic void realMax(RealPositionable max)
realMax in interface RealIntervalpublic void dimensions(long[] dimensions)
dimensions in interface Dimensionspublic long dimension(int d)
dimension in interface Dimensionsdimension in interface Intervalpublic R getRoi()
IJRoiWrapperRoi.getRoi in interface IJRoiWrapper<R extends Roi,Localizable>RoiCopyright © 2014–2022 ImageJ. All rights reserved.