public abstract class AbstractNeighborhoodCursor<T> extends Object implements Cursor<T>, Bounded
| Modifier and Type | Field and Description |
|---|---|
protected AbstractNeighborhood<T> |
neighborhood |
protected OutOfBounds<T> |
ra |
| Constructor and Description |
|---|
AbstractNeighborhoodCursor(AbstractNeighborhood<T> neighborhood) |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
double |
getDoublePosition(int d)
Return the current position in a given dimension.
|
float |
getFloatPosition(int d)
Return the current position in a given dimension.
|
int |
getIntPosition(int d)
Return the current position in a given dimension.
|
long |
getLongPosition(int d)
Return the current position in a given dimension.
|
boolean |
isOutOfBounds()
True if located out of image bounds.
|
void |
jumpFwd(long steps)
This dummy method just calls
Iterator.fwd() multiple times. |
void |
localize(double[] position)
Write the current position into the passed array.
|
void |
localize(float[] position)
Write the current position into the passed array.
|
void |
localize(int[] position)
Write the current position into the passed array.
|
void |
localize(long[] position)
Write the current position into the passed array.
|
T |
next() |
int |
numDimensions()
Gets the space's number of dimensions.
|
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyCursorforEachRemaining, hasNextlocalize, positionAsLongArray, positionAsPointlocalize, positionAsDoubleArray, positionAsRealPointprotected AbstractNeighborhood<T> neighborhood
protected final OutOfBounds<T> ra
public AbstractNeighborhoodCursor(AbstractNeighborhood<T> neighborhood)
public void localize(float[] position)
RealLocalizablelocalize in interface RealLocalizableposition - receives current positionpublic void localize(double[] position)
RealLocalizablelocalize in interface RealLocalizableposition - receives current positionpublic float getFloatPosition(int d)
RealLocalizablegetFloatPosition in interface LocalizablegetFloatPosition in interface RealLocalizabled - dimensionpublic double getDoublePosition(int d)
RealLocalizablegetDoublePosition in interface LocalizablegetDoublePosition in interface RealLocalizabled - dimensionpublic int numDimensions()
EuclideanSpacenumDimensions in interface EuclideanSpacepublic T get()
SamplerSampler points at.public void jumpFwd(long steps)
Iterator.fwd() multiple times.steps - number of steps to move forwardpublic void localize(int[] position)
Localizablelocalize in interface Localizableposition - receives current positionpublic void localize(long[] position)
Localizablelocalize in interface Localizableposition - receives current positionpublic int getIntPosition(int d)
LocalizablegetIntPosition in interface Localizabled - dimensionpublic long getLongPosition(int d)
LocalizablegetLongPosition in interface Localizabled - dimensionpublic boolean isOutOfBounds()
BoundedisOutOfBounds in interface BoundedCopyright © 2015–2022 ImgLib2. All rights reserved.