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 |
positionn| 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, removegetDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localizenumDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaininggetDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, positionAsLongArray, positionAsPointlocalize, localize, localize, positionAsDoubleArray, positionAsRealPointnumDimensionsprotected 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.PlanarContainerSamplerpublic T get()
SamplerSampler 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)
IteratorjumpFwd in class AbstractLocalizingCursorInt<T extends NativeType<T>>steps - number of steps to move forwardpublic void reset()
Copyright © 2015–2022 ImgLib2. All rights reserved.