@Deprecated public abstract class AbstractIterableRegionOfInterest extends AbstractRegionOfInterest implements IterableRegionOfInterest
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractIterableRegionOfInterest.AROIClippedIterableInterval<T extends Type<T>>
Deprecated.
|
protected class |
AbstractIterableRegionOfInterest.AROIIterableInterval<T extends Type<T>>
Deprecated.
|
protected class |
AbstractIterableRegionOfInterest.AROIIterationOrder
Deprecated.
|
AbstractRegionOfInterest.AROIRandomAccess
nDimensions
Modifier | Constructor and Description |
---|---|
protected |
AbstractIterableRegionOfInterest(int nDimensions)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected long |
dimension(int d)
Deprecated.
|
protected void |
dimensions(long[] d)
Deprecated.
|
protected long |
getCachedSize()
Deprecated.
|
protected void |
getExtrema(long[] minima,
long[] maxima)
Deprecated.
Get the minimum and maximum corners of a bounding hypercube around all
points in the ROI.
|
<T extends Type<T>> |
getIterableIntervalOverROI(RandomAccessible<T> src)
Deprecated.
Given a sampler in the ROI's space, provide an iterable that can make
iterators over the space, sampling pixels from the sampler.
|
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.
|
protected void |
invalidateCachedState()
Deprecated.
|
protected boolean |
jumpFwd(long totalSteps,
long[] position,
long[] end,
Interval interval)
Deprecated.
Jump forward a certain number of steps from the given position.
|
protected long |
max(int d)
Deprecated.
|
protected void |
max(long[] max)
Deprecated.
|
protected void |
max(Positionable max)
Deprecated.
|
protected long |
min(int d)
Deprecated.
|
protected void |
min(long[] min)
Deprecated.
|
protected void |
min(Positionable min)
Deprecated.
|
protected abstract boolean |
nextRaster(long[] position,
long[] end)
Deprecated.
Advance the position to the next raster.
|
protected boolean |
nextRaster(long[] position,
long[] end,
Interval interval)
Deprecated.
Advance the position to the next raster, taking care that the raster is
wholly within the given interval.
|
protected void |
remove(long[] position)
Deprecated.
Remove a pixel from a ROI if possible.
|
protected long |
size()
Deprecated.
Return the # of elements available from a cursor over the ROI.
|
move, numDimensions, realMax, realMax, realMax, realMin, realMin, realMin, realRandomAccess, realRandomAccess, validateRealExtremaCache
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, move, move
getAt, getAt, getAt, realRandomAccess, realRandomAccess
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMax, realMin, realMin, realMin
numDimensions
protected AbstractIterableRegionOfInterest(int nDimensions)
protected abstract boolean nextRaster(long[] position, long[] end)
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.protected boolean nextRaster(long[] position, long[] end, Interval interval)
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.interval
- the raster must be within this interval.protected boolean jumpFwd(long totalSteps, long[] position, long[] end, Interval interval)
totalSteps
- - number of steps to moveposition
- - the internal position which should be advanced by the number
of stepsend
- - the end position of the current raster on entry and on exit.interval
- - constraining interval. Pixels will only be counted while
jumping for the region within the interval. If interval is
null, there is no constraining interval.public <T extends Type<T>> IterableInterval<T> getIterableIntervalOverROI(RandomAccessible<T> src)
IterableRegionOfInterest
getIterableIntervalOverROI
in interface IterableRegionOfInterest
src
- - a RandomAccessible that can generate RandomAccess objects.
The cursors that IterableInterval generates will use "src" to
generate a RandomAccess to sample the space.protected long size()
protected void getExtrema(long[] minima, long[] maxima)
minima
- - minimum coordinates of the ROImaxima
- - maximum coordinates of the ROIprotected void invalidateCachedState()
invalidateCachedState
in class AbstractRegionOfInterest
protected void getRealExtrema(double[] minima, double[] maxima)
getRealExtrema
in class AbstractRegionOfInterest
minima
- maxima
- protected void remove(long[] position)
position
- - position that should be removed from the ROI.protected long getCachedSize()
protected long dimension(int d)
protected void dimensions(long[] d)
protected void max(long[] max)
protected void max(Positionable max)
protected long max(int d)
protected void min(long[] min)
protected void min(Positionable min)
protected long min(int d)
Copyright © 2015–2022 ImgLib2. All rights reserved.