Package net.imglib2.img.array
Class AbstractArrayLocalizingCursor<T extends NativeType<T>>
java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.AbstractLocalizableInt
net.imglib2.AbstractLocalizingCursorInt<T>
net.imglib2.img.array.AbstractArrayLocalizingCursor<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Iterator<T>
,Cursor<T>
,EuclideanSpace
,Iterator
,Localizable
,RealCursor<T>
,RealLocalizable
,Sampler<T>
- Direct Known Subclasses:
ArrayLocalizingCursor
,ArrayLocalizingSubIntervalCursor
public abstract class AbstractArrayLocalizingCursor<T extends NativeType<T>>
extends AbstractLocalizingCursorInt<T>
- Author:
- Stephan Preibisch, Stephan Saalfeld, Christian Dietz, Tobias Pietzsch
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe underlying sourceArrayImg
.protected final int
Last index.protected final int[]
Maximum of theArrayImg
in every dimension.protected final int
Offset of this cursor.protected final int
Size of this cursor.protected final T
An instance of T.Fields inherited from class net.imglib2.AbstractLocalizableInt
position
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TODO JavadocAbstractArrayLocalizingCursor
(ArrayImg<T, ?> img, int offset, int size) TODO Javadoc -
Method Summary
Modifier and TypeMethodDescriptionvoid
fwd()
Move forward.get()
Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSampler
points at.boolean
hasNext()
Returns true if another step forward is possible.void
jumpFwd
(long steps) Move steps × forward.void
reset()
Reset theIterator
, that is put it to where it would be if newly created.Methods inherited from class net.imglib2.AbstractLocalizingCursorInt
copy, copyCursor, next, remove
Methods inherited from class net.imglib2.AbstractLocalizableInt
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize
Methods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensions
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
Methods inherited from interface java.util.Iterator
forEachRemaining
Methods inherited from interface net.imglib2.Localizable
getIntPosition, getLongPosition, localize, localize
Methods inherited from interface net.imglib2.RealLocalizable
getDoublePosition, getFloatPosition, localize, localize
-
Field Details
-
size
protected final int sizeSize of this cursor. -
offset
protected final int offsetOffset of this cursor. -
type
An instance of T. -
img
The underlying sourceArrayImg
. -
lastIndex
protected final int lastIndexLast index. -
max
protected final int[] maxMaximum of theArrayImg
in every dimension. This is used to check isOutOfBounds().
-
-
Constructor Details
-
AbstractArrayLocalizingCursor
TODO Javadoc- Parameters:
cursor
-
-
AbstractArrayLocalizingCursor
TODO Javadoc- Parameters:
img
-offset
-size
-
-
-
Method Details
-
get
Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSampler
points at. -
hasNext
public boolean hasNext()Returns true if another step forward is possible.- Returns:
- true, if there is another step forward is possible, otherwise false
-
fwd
public void fwd()Move forward. -
jumpFwd
public void jumpFwd(long steps) Move steps × forward.- Specified by:
jumpFwd
in interfaceIterator
- Overrides:
jumpFwd
in classAbstractLocalizingCursorInt<T extends NativeType<T>>
- Parameters:
steps
- number of steps to move forward
-
reset
public void reset()Reset theIterator
, that is put it to where it would be if newly created.
-