public class PlanarCursor1D<T extends NativeType<T>> extends PlanarCursor<T>
PlanarContainers
container, index, lastIndex, lastSliceIndex, sliceIndex, type, typeIndex
n
Constructor and Description |
---|
PlanarCursor1D(PlanarImg<T,?> container) |
Modifier and Type | Method and Description |
---|---|
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, fwd, 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 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.