public class CellLocalizingCursor<T extends NativeType<T>,C extends Cell<?>> extends AbstractLocalizingCursor<T> implements AbstractCellImg.CellImgSampler<C>
Cursor
on a AbstractCellImg
.Modifier and Type | Field and Description |
---|---|
protected long[] |
currentCellMax |
protected long[] |
currentCellMin |
protected Cursor<C> |
cursorOnCells |
protected int |
index
The current index of the type.
|
protected boolean |
isNotLastCell
Caches cursorOnCells.hasNext().
|
protected int |
lastIndexInCell |
protected T |
type |
protected Index |
typeIndex |
position
n
Modifier | Constructor and Description |
---|---|
|
CellLocalizingCursor(AbstractCellImg<T,?,C,?> img) |
protected |
CellLocalizingCursor(CellLocalizingCursor<T,C> cursor) |
Modifier and Type | Method and Description |
---|---|
CellLocalizingCursor<T,C> |
copy() |
CellLocalizingCursor<T,C> |
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. |
C |
getCell() |
boolean |
hasNext() |
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 int lastIndexInCell
protected long[] currentCellMin
protected long[] currentCellMax
protected int index
protected boolean isNotLastCell
protected CellLocalizingCursor(CellLocalizingCursor<T,C> cursor)
public CellLocalizingCursor(AbstractCellImg<T,?,C,?> img)
public C getCell()
getCell
in interface AbstractCellImg.CellImgSampler<C extends Cell<?>>
public T get()
Sampler
Sampler
points at.get
in interface Sampler<T extends NativeType<T>>
public CellLocalizingCursor<T,C> copy()
copy
in interface Sampler<T extends NativeType<T>>
copy
in class AbstractLocalizingCursor<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 CellLocalizingCursor<T,C> copyCursor()
copyCursor
in interface Cursor<T extends NativeType<T>>
copyCursor
in interface RealCursor<T extends NativeType<T>>
copyCursor
in class AbstractLocalizingCursor<T extends NativeType<T>>
public boolean hasNext()
hasNext
in interface Iterator<T extends NativeType<T>>
public void jumpFwd(long steps)
Iterator
jumpFwd
in class AbstractLocalizingCursor<T extends NativeType<T>>
steps
- number of steps to move forwardpublic void fwd()
public void reset()
Copyright © 2015–2022 ImgLib2. All rights reserved.