@Deprecated public class EllipseRegionOfInterest extends AbstractIterableRegionOfInterest
AbstractIterableRegionOfInterest.AROIClippedIterableInterval<T extends Type<T>>, AbstractIterableRegionOfInterest.AROIIterableInterval<T extends Type<T>>, AbstractIterableRegionOfInterest.AROIIterationOrder
AbstractRegionOfInterest.AROIRandomAccess
nDimensions
Constructor and Description |
---|
EllipseRegionOfInterest()
Deprecated.
Constructor of a 2-dimensional ellipse centered at the origin with radius
0.
|
EllipseRegionOfInterest(int nDim)
Deprecated.
Constructor of an N-dimensional hyper-ellipse centered at the origin with
radius 0.
|
EllipseRegionOfInterest(RealLocalizable origin)
Deprecated.
Construct an N-dimensional hyper-ellipse centered at an origin with zero
radius
|
EllipseRegionOfInterest(RealLocalizable origin,
double radius)
Deprecated.
Construct a hyper-circle centered at an origin with the same radius for
all dimensions.
|
EllipseRegionOfInterest(RealLocalizable origin,
double[] radii)
Deprecated.
Construct an N-dimensional hyper-ellipse centered at the origin with a
given radius.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double[] position)
Deprecated.
Determine whether a point is a member of the region of interest
|
protected void |
getExtrema(long[] minima,
long[] maxima)
Deprecated.
Get the minimum and maximum corners of a bounding hypercube around all
points in the ROI.
|
void |
getOrigin(double[] orig)
Deprecated.
|
double |
getOrigin(int d)
Deprecated.
Get a single coordinate of the origin position
|
void |
getOrigin(RealPositionable orig)
Deprecated.
Get the coordinates of the origin
|
void |
getRadii(double[] r)
Deprecated.
Get the radius along all of the dimensions
|
double |
getRadius(int d)
Deprecated.
Get the ellipse radius along the given dimension
|
protected void |
getRealExtrema(double[] minima,
double[] maxima)
Deprecated.
Get the minimum and maximum corners of a bounding hypercube using real
coordinates (which might have fractional components)
The implementer should only override this if the ROI is described in real
coordinates.
|
boolean |
isMember(long[] position)
Deprecated.
Test to see if an integer position is inside the ellipse.
|
void |
move(double[] displacement)
Deprecated.
|
void |
move(double displacement,
int d)
Deprecated.
|
void |
move(RealLocalizable displacement)
Deprecated.
Move the origin of the ellipse by the given displacement
|
protected boolean |
nextRaster(long[] position,
long[] end)
Deprecated.
Advance the position to the next raster.
|
void |
setOrigin(double[] origin)
Deprecated.
Set the origin of the ellipse to the given coordinates
|
void |
setOrigin(double origin,
int d)
Deprecated.
Set the origin of the ellipse along the given dimension
|
void |
setOrigin(RealLocalizable origin)
Deprecated.
Change the origin of the ellipse.
|
void |
setRadii(double[] radii)
Deprecated.
Set all of the radii
|
void |
setRadius(double radius)
Deprecated.
Set all radii similarly so that the ellipse is really a circle
|
void |
setRadius(double radius,
int d)
Deprecated.
Set the radius along the given dimension
|
dimension, dimensions, getCachedSize, getIterableIntervalOverROI, invalidateCachedState, jumpFwd, max, max, max, min, min, min, nextRaster, remove, size
numDimensions, realMax, realMax, realMax, realMin, realMin, realMin, realRandomAccess, realRandomAccess, validateRealExtremaCache
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAt, getAt, getAt, realRandomAccess, realRandomAccess
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMax, realMin, realMin, realMin
numDimensions
public EllipseRegionOfInterest()
public EllipseRegionOfInterest(int nDim)
nDim
- public EllipseRegionOfInterest(RealLocalizable origin, double[] radii)
origin
- radii
- public EllipseRegionOfInterest(RealLocalizable origin)
origin
- public EllipseRegionOfInterest(RealLocalizable origin, double radius)
origin
- radius
- public void setOrigin(RealLocalizable origin)
origin
- the new originpublic void setOrigin(double[] origin)
origin
- public void setOrigin(double origin, int d)
origin
- the new center coordinated
- the dimension (0 to n-1 for n-dimensional hyper-ellipse) of
the coordinatepublic void move(RealLocalizable displacement)
displacement
- add this displacement to the origin coordinates.public void move(double[] displacement)
move
in interface RegionOfInterest
move
in class AbstractRegionOfInterest
public void move(double displacement, int d)
public double getOrigin(int d)
d
- dimension to retrievepublic void getOrigin(RealPositionable orig)
orig
- set the position of this RealPositionable to that of the
origin.public void getOrigin(double[] orig)
public double getRadius(int d)
d
- fetch radius for this dimensionpublic void getRadii(double[] r)
r
- an array of doubles to be filled with the radiipublic void setRadius(double radius)
radius
- public void setRadius(double radius, int d)
radius
- the new radiusd
- dimension to be adjustedpublic void setRadii(double[] radii)
radii
- protected void getExtrema(long[] minima, long[] maxima)
AbstractIterableRegionOfInterest
getExtrema
in class AbstractIterableRegionOfInterest
minima
- - minimum coordinates of the ROImaxima
- - maximum coordinates of the ROIprotected void getRealExtrema(double[] minima, double[] maxima)
AbstractIterableRegionOfInterest
getRealExtrema
in class AbstractIterableRegionOfInterest
protected boolean nextRaster(long[] position, long[] end)
AbstractIterableRegionOfInterest
nextRaster
in class AbstractIterableRegionOfInterest
position
- on entry, the position of the raster after advancement to its
end (or initial or final position)end
- on exit, the coordinates of the end of the raster. Index 0 is
generally the only pertinent variable, subsequent indices
should be duplicates of the start raster. Nevertheless, using
an array lets the caller pass the results as a modification of
the array.public boolean contains(double[] position)
RegionOfInterest
position
- position in questionpublic boolean isMember(long[] position)
position
- Copyright © 2015–2022 ImgLib2. All rights reserved.