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() |
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() |
T |
getType()
Get an instance of
T. |
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) |
void |
reset() |
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localizenumDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyCursornextforEachRemaining, removegetDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize, positionAsLongArray, positionAsPointlocalize, 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 T getType()
TypedT.
It should not be assumed that the returned T instance is an
independent copy. In particular, repeated calls to getType() may
return the same instance.
getType in interface Sampler<T extends NativeType<T>>getType in interface Typed<T extends NativeType<T>>Tpublic PlanarLocalizingCursor<T> copy()
copy in interface Cursor<T extends NativeType<T>>copy in interface RealCursor<T extends NativeType<T>>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 boolean hasNext()
hasNext in interface Iterator<T extends NativeType<T>>public void fwd()
public void jumpFwd(long steps)
public void reset()
Copyright © 2009–2025 ImgLib2. All rights reserved.