@Deprecated public class RectangleRegionOfInterest extends AbstractIterableRegionOfInterest
AbstractIterableRegionOfInterest.AROIClippedIterableInterval<T extends Type<T>>, AbstractIterableRegionOfInterest.AROIIterableInterval<T extends Type<T>>, AbstractIterableRegionOfInterest.AROIIterationOrder
AbstractRegionOfInterest.AROIRandomAccess
nDimensions
Constructor and Description |
---|
RectangleRegionOfInterest(double[] origin,
double[] extent)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double[] position)
Deprecated.
Determine whether a point is a member of the region of interest
|
void |
getExtent(double[] ext)
Deprecated.
Copy the extents of the rectangle into the array provided
|
double |
getExtent(int d)
Deprecated.
Get the extent of the rectangle in one dimension
|
void |
getExtent(RealPositionable p)
Deprecated.
Write the extent into a RealPositionable
|
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[] org)
Deprecated.
Write the origin position to this array
|
double |
getOrigin(int d)
Deprecated.
Get one component of the origin position
|
void |
getOrigin(RealPositionable ptOrigin)
Deprecated.
Write the position into a RealPositionable
|
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.
|
void |
move(double displacement,
int d)
Deprecated.
|
protected boolean |
nextRaster(long[] position,
long[] end)
Deprecated.
Advance the position to the next raster.
|
void |
setExtent(double[] extent)
Deprecated.
Set the extent of the rectangle.
|
void |
setExtent(double extent,
int d)
Deprecated.
Set the extent for a single dimension
|
void |
setOrigin(double[] origin)
Deprecated.
Set the origin using a double array of coordinates.
|
void |
setOrigin(double origin,
int d)
Deprecated.
Set the origin for a particular coordinate
|
void |
setOrigin(RealLocalizable ptOrigin)
Deprecated.
Set the origin using a point.
|
protected long |
size()
Deprecated.
Return the # of elements available from a cursor over the ROI.
|
dimension, dimensions, getCachedSize, getIterableIntervalOverROI, invalidateCachedState, jumpFwd, max, max, max, min, min, min, nextRaster, remove
move, numDimensions, realMax, realMax, realMax, realMin, realMin, realMin, realRandomAccess, realRandomAccess, validateRealExtremaCache
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
move
getAt, getAt, getAt, realRandomAccess, realRandomAccess
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMax, realMin, realMin, realMin
numDimensions
public RectangleRegionOfInterest(double[] origin, double[] extent)
public void getOrigin(RealPositionable ptOrigin)
ptOrigin
- write the origin position to this RealPositionablepublic void getOrigin(double[] org)
org
- write position herepublic double getOrigin(int d)
d
- the dimension to retrievepublic void setOrigin(RealLocalizable ptOrigin)
ptOrigin
- - new origin. This should define the minima of the rectanglepublic void setOrigin(double[] origin)
origin
- the coordinates of the minima of the rectanglepublic void setOrigin(double origin, int d)
origin
- new value of the minimum of the rectangle at the given
coordinated
- zero-based index of the dimension to be affectedpublic void setExtent(double[] extent)
extent
- the extent (width, height, depth, duration, etc) of the
rectanglepublic void setExtent(double extent, int d)
extent
- d
- public void getExtent(RealPositionable p)
p
- - RealPositionable that will hold the extentpublic void getExtent(double[] ext)
ext
- on output, the extent of the rectanglepublic double getExtent(int d)
d
- dimension in questionprotected 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 questionprotected long size()
AbstractIterableRegionOfInterest
size
in class AbstractIterableRegionOfInterest
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
public void move(double displacement, int d)
Copyright © 2015–2022 ImgLib2. All rights reserved.