public class OvalRoiWrapper extends Object implements IJRealRoiWrapper<ij.gui.OvalRoi>, net.imglib2.roi.geom.real.WritableEllipsoid
OvalRoi as an ImgLib2 Ellipsoid.| Constructor and Description |
|---|
OvalRoiWrapper(double x,
double y,
double width,
double height)
Creates an ImageJ 1.x
OvalRoi and then wraps it as an ImgLib2
Ellipsoid. |
OvalRoiWrapper(int x,
int y,
int width,
int height)
Creates an ImageJ 1.x
OvalRoi and then wraps it as an ImgLib2
Ellipsoid. |
OvalRoiWrapper(ij.gui.OvalRoi oval)
Wraps the given ImageJ 1.x
OvalRoi as an ImgLib2 Ellipsoid. |
| Modifier and Type | Method and Description |
|---|---|
net.imglib2.roi.BoundaryType |
boundaryType() |
net.imglib2.roi.util.RealLocalizableRealPositionable |
center() |
boolean |
equals(Object obj) |
double |
exponent() |
ij.gui.OvalRoi |
getRoi()
Returns the backing ImageJ 1.x
Roi. |
int |
hashCode() |
double |
realMax(int d) |
double |
realMin(int d) |
double |
semiAxisLength(int d) |
void |
setSemiAxisLength(int d,
double length)
This will always throw an
UnsupportedOperationException. |
boolean |
test(net.imglib2.RealLocalizable t) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitnumDimensionssetExponentequals, hashCode, maskTypeand, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xornegate, or, transform, xorisAll, knownConstantmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPointpublic OvalRoiWrapper(int x,
int y,
int width,
int height)
OvalRoi and then wraps it as an ImgLib2
Ellipsoid.x - x coordinate of the upper left corner of the bounding box, i.e. (x
coor of center) - (x semi-axis length)y - y coordinate of the upper left corner of the bounding box, i.e. (y
coor of center) - (y semi-axis length)width - width of the bounding box, i.e. 2 * (x semi-axis length)height - height of the bounding box, i.e. 2 * (y semi-axis length)public OvalRoiWrapper(double x,
double y,
double width,
double height)
OvalRoi and then wraps it as an ImgLib2
Ellipsoid.x - x coordinate of the upper left corner of the bounding box, i.e. (x
coor of center) - (x semi-axis length)y - y coordinate of the upper left corner of the bounding box, i.e. (y
coor of center) - (y semi-axis length)width - width of the bounding box, i.e. 2 * (x semi-axis length)height - height of the bounding box, i.e. 2 * (y semi-axis length)public OvalRoiWrapper(ij.gui.OvalRoi oval)
OvalRoi as an ImgLib2 Ellipsoid.oval - ImageJ 1.x oval to be wrappedpublic boolean test(net.imglib2.RealLocalizable t)
test in interface Predicate<net.imglib2.RealLocalizable>public double realMin(int d)
realMin in interface net.imglib2.RealIntervalpublic double realMax(int d)
realMax in interface net.imglib2.RealIntervalpublic double exponent()
exponent in interface net.imglib2.roi.geom.real.SuperEllipsoidpublic double semiAxisLength(int d)
semiAxisLength in interface net.imglib2.roi.geom.real.SuperEllipsoidpublic net.imglib2.roi.util.RealLocalizableRealPositionable center()
center in interface net.imglib2.roi.geom.real.SuperEllipsoidcenter in interface net.imglib2.roi.geom.real.WritableSuperEllipsoidpublic void setSemiAxisLength(int d,
double length)
UnsupportedOperationException.setSemiAxisLength in interface net.imglib2.roi.geom.real.WritableSuperEllipsoidUnsupportedOperationException - cannot modify width/height of
underlying OvalRoipublic net.imglib2.roi.BoundaryType boundaryType()
boundaryType in interface net.imglib2.roi.MaskPredicate<net.imglib2.RealLocalizable>public ij.gui.OvalRoi getRoi()
IJRoiWrapperRoi.getRoi in interface IJRoiWrapper<ij.gui.OvalRoi,net.imglib2.RealLocalizable>Roipublic boolean equals(Object obj)
equals in interface net.imglib2.roi.geom.real.SuperEllipsoidequals in interface net.imglib2.roi.MaskPredicate<net.imglib2.RealLocalizable>equals in class ObjectCopyright © 2009–2025 ImageJ. All rights reserved.