T
- public class PlanarCursor2D<T extends NativeType<T>> extends PlanarCursor<T>
PlanarContainers
container, index, lastIndex, lastSliceIndex, sliceIndex, type, typeIndex
n
Constructor and Description |
---|
PlanarCursor2D(PlanarImg<T,?> container) |
Modifier and Type | Method and Description |
---|---|
void |
fwd() |
int |
getIntPosition(int dim)
Return the current position in a given dimension.
|
boolean |
hasNext()
Note: This test is fragile in a sense that it returns true for elements
after the last element as well.
|
void |
localize(int[] position)
Write the current position into the passed array.
|
copy, copyCursor, get, getCurrentSliceIndex, jumpFwd, reset, toString
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
public boolean hasNext()
PlanarCursor
hasNext
in interface Iterator<T extends NativeType<T>>
hasNext
in class PlanarCursor<T extends NativeType<T>>
public void fwd()
fwd
in class PlanarCursor<T extends NativeType<T>>
public void localize(int[] position)
Localizable
localize
in interface Localizable
localize
in class PlanarCursor<T extends NativeType<T>>
position
- receives current positionpublic int getIntPosition(int dim)
Localizable
getIntPosition
in interface Localizable
getIntPosition
in class PlanarCursor<T extends NativeType<T>>
dim
- dimensionCopyright © 2015–2022 ImgLib2. All rights reserved.