T
- public class PlanarLocalizingCursor<T extends NativeType<T>> extends AbstractLocalizingCursorInt<T> implements PlanarImg.PlanarContainerSampler
PlanarContainers
Modifier and Type | Field and Description |
---|---|
protected PlanarImg<T,?> |
container |
protected int |
index
The current index of the type.
|
protected int |
lastIndex |
protected int |
lastSliceIndex |
protected int[] |
max
Maximum of the
PlanarImg in every dimension. |
protected int |
sliceIndex |
protected T |
type |
protected Index |
typeIndex |
position
n
Modifier | Constructor and Description |
---|---|
|
PlanarLocalizingCursor(PlanarImg<T,?> container) |
protected |
PlanarLocalizingCursor(PlanarLocalizingCursor<T> cursor) |
Modifier and Type | Method and Description |
---|---|
PlanarLocalizingCursor<T> |
copy() |
PlanarLocalizingCursor<T> |
copyCursor() |
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 |
getCurrentSliceIndex() |
boolean |
hasNext()
Note: This test is fragile in a sense that it returns true for elements
after the last element as well.
|
void |
jumpFwd(long steps)
Move steps × forward.
|
void |
reset() |
next, remove
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, positionAsLongArray, positionAsPoint
localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
protected final T extends NativeType<T> type
protected final Index typeIndex
protected final PlanarImg<T extends NativeType<T>,?> container
protected final int lastIndex
protected final int lastSliceIndex
protected int sliceIndex
protected int index
protected final int[] max
PlanarImg
in every dimension. This is used to
check isOutOfBounds().protected PlanarLocalizingCursor(PlanarLocalizingCursor<T> cursor)
public int getCurrentSliceIndex()
getCurrentSliceIndex
in interface PlanarImg.PlanarContainerSampler
public T get()
Sampler
Sampler
points at.get
in interface Sampler<T extends NativeType<T>>
public PlanarLocalizingCursor<T> copy()
copy
in interface Sampler<T extends NativeType<T>>
copy
in class AbstractLocalizingCursorInt<T extends NativeType<T>>
Sampler
in the same state accessing the same
values.
It does NOT copy T, just the state of the Sampler
.
Otherwise use T.copy() if available.
Sampler.copy().get() == Sampler.get(), i.e. both hold the same
value, not necessarily the same instance (this is the case for an
ArrayCursor
for example)public PlanarLocalizingCursor<T> copyCursor()
copyCursor
in interface Cursor<T extends NativeType<T>>
copyCursor
in interface RealCursor<T extends NativeType<T>>
copyCursor
in class AbstractLocalizingCursorInt<T extends NativeType<T>>
public boolean hasNext()
hasNext
in interface Iterator<T extends NativeType<T>>
public void fwd()
public void jumpFwd(long steps)
Iterator
jumpFwd
in class AbstractLocalizingCursorInt<T extends NativeType<T>>
steps
- number of steps to move forwardpublic void reset()
Copyright © 2015–2022 ImgLib2. All rights reserved.