T
- public abstract class AbstractArrayCursor<T extends NativeType<T>> extends AbstractCursorInt<T>
Modifier and Type | Field and Description |
---|---|
protected ArrayImg<T,?> |
img
Source image
|
protected int |
lastIndex
Last index
|
protected int |
offset
Offset of this cursor
|
protected int |
size
Size of this cursor
|
protected T |
type
An instance of T
|
n
Modifier | Constructor and Description |
---|---|
protected |
AbstractArrayCursor(AbstractArrayCursor<T> cursor)
TODO Javadoc
|
|
AbstractArrayCursor(ArrayImg<T,?> img,
int offset,
int size)
TODO Javadoc
|
Modifier and Type | Method and Description |
---|---|
void |
fwd() |
T |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
int |
getIntPosition(int dim)
Return the current position in a given dimension.
|
boolean |
hasNext() |
void |
jumpFwd(long steps)
Highly recommended to override this with a more efficient version.
|
void |
localize(int[] position)
Write the current position into the passed array.
|
void |
reset() |
String |
toString() |
copy, copyCursor, getDoublePosition, getFloatPosition, getLongPosition, localize, localize, localize, next, remove
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEachRemaining
localize, positionAsLongArray, positionAsPoint
localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
protected final int offset
protected final int size
protected final T extends NativeType<T> type
protected final ArrayImg<T extends NativeType<T>,?> img
protected final int lastIndex
protected AbstractArrayCursor(AbstractArrayCursor<T> cursor)
cursor
- public T get()
Sampler
Sampler
points at.public boolean hasNext()
public void jumpFwd(long steps)
AbstractCursorInt
jumpFwd
in class AbstractCursorInt<T extends NativeType<T>>
steps
- number of steps to move forwardpublic void fwd()
public void reset()
public String toString()
toString
in class AbstractCursorInt<T extends NativeType<T>>
public int getIntPosition(int dim)
Localizable
dim
- dimensionpublic void localize(int[] position)
Localizable
position
- receives current positionCopyright © 2015–2022 ImgLib2. All rights reserved.