public class OvalRoiWrapper extends Object implements IJRealRoiWrapper<OvalRoi>, WritableEllipsoid
Constructor and Description |
---|
OvalRoiWrapper(double x,
double y,
double width,
double height)
|
OvalRoiWrapper(int x,
int y,
int width,
int height)
|
OvalRoiWrapper(OvalRoi oval)
|
Modifier and Type | Method and Description |
---|---|
BoundaryType |
boundaryType() |
RealLocalizableRealPositionable |
center() |
boolean |
equals(Object obj) |
double |
exponent() |
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(RealLocalizable t) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
numDimensions
setExponent
equals, hashCode, maskType
and, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xor
isAll, knownConstant
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
public OvalRoiWrapper(int x, int y, int width, int height)
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)
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(OvalRoi oval)
oval
- ImageJ 1.x oval to be wrappedpublic boolean test(RealLocalizable t)
test
in interface Predicate<RealLocalizable>
public double realMin(int d)
realMin
in interface RealInterval
public double realMax(int d)
realMax
in interface RealInterval
public double exponent()
exponent
in interface SuperEllipsoid
public double semiAxisLength(int d)
semiAxisLength
in interface SuperEllipsoid
public RealLocalizableRealPositionable center()
center
in interface SuperEllipsoid
center
in interface WritableSuperEllipsoid
public void setSemiAxisLength(int d, double length)
UnsupportedOperationException
.setSemiAxisLength
in interface WritableSuperEllipsoid
UnsupportedOperationException
- cannot modify width/height of
underlying OvalRoi
public BoundaryType boundaryType()
boundaryType
in interface MaskPredicate<RealLocalizable>
public OvalRoi getRoi()
IJRoiWrapper
Roi
.getRoi
in interface IJRoiWrapper<OvalRoi,RealLocalizable>
Roi
public boolean equals(Object obj)
equals
in interface SuperEllipsoid
equals
in interface MaskPredicate<RealLocalizable>
equals
in class Object
Copyright © 2014–2022 ImageJ. All rights reserved.