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, wait
boundaryType, equals, isAll, knownConstant, maskType
maxAsLongArray, maxAsPoint, minAsLongArray, minAsPoint
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
allPositive, allPositive, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositive
public 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 EuclideanSpace
public 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 Interval
realMin
in interface RealInterval
public void realMin(double[] min)
realMin
in interface RealInterval
public void realMin(RealPositionable min)
realMin
in interface RealInterval
public double realMax(int d)
realMax
in interface Interval
realMax
in interface RealInterval
public void realMax(double[] max)
realMax
in interface RealInterval
public void realMax(RealPositionable max)
realMax
in interface RealInterval
public void dimensions(long[] dimensions)
dimensions
in interface Dimensions
public long dimension(int d)
dimension
in interface Dimensions
dimension
in interface Interval
public R getRoi()
IJRoiWrapper
Roi
.getRoi
in interface IJRoiWrapper<R extends Roi,Localizable>
Roi
Copyright © 2014–2022 ImageJ. All rights reserved.