T
- public abstract class AbstractUnsafeCursor<T extends NativeLongAccessType<T>> extends AbstractCursor<T>
Modifier and Type | Field and Description |
---|---|
protected UnsafeImg<T,?> |
img
Source image
|
protected long |
lastIndex
Last index
|
protected long |
offset
Offset of this cursor
|
protected long |
size
Size of this cursor
|
protected T |
type
An instance of T
|
n
Modifier | Constructor and Description |
---|---|
protected |
AbstractUnsafeCursor(AbstractUnsafeCursor<T> cursor)
TODO Javadoc
|
|
AbstractUnsafeCursor(UnsafeImg<T,?> img,
long offset,
long 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.
|
long |
getLongPosition(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 |
localize(long[] position)
Write the current position into the passed array.
|
void |
reset() |
String |
toString() |
copy, copyCursor, getDoublePosition, getFloatPosition, 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 long offset
protected final long size
protected final T extends NativeLongAccessType<T> type
protected final UnsafeImg<T extends NativeLongAccessType<T>,?> img
protected final long lastIndex
protected AbstractUnsafeCursor(AbstractUnsafeCursor<T> cursor)
cursor
- public T get()
Sampler
Sampler
points at.public boolean hasNext()
public void jumpFwd(long steps)
AbstractCursor
jumpFwd
in class AbstractCursor<T extends NativeLongAccessType<T>>
steps
- number of steps to move forwardpublic void fwd()
public void reset()
public String toString()
toString
in class AbstractCursor<T extends NativeLongAccessType<T>>
public int getIntPosition(int dim)
Localizable
getIntPosition
in interface Localizable
getIntPosition
in class AbstractCursor<T extends NativeLongAccessType<T>>
dim
- dimensionpublic void localize(int[] position)
Localizable
localize
in interface Localizable
localize
in class AbstractCursor<T extends NativeLongAccessType<T>>
position
- receives current positionpublic long getLongPosition(int dim)
Localizable
dim
- dimensionpublic void localize(long[] position)
Localizable
position
- receives current positionCopyright © 2015–2022 ImgLib2. All rights reserved.