Package net.imglib2.img.sparse
Class NtreeCursor<T extends NativeType<T>>
- java.lang.Object
-
- net.imglib2.AbstractEuclideanSpace
-
- net.imglib2.AbstractInterval
-
- net.imglib2.iterator.IntervalIterator
-
- net.imglib2.iterator.LocalizingIntervalIterator
-
- net.imglib2.img.sparse.NtreeCursor<T>
-
- All Implemented Interfaces:
java.util.Iterator<T>,Cursor<T>,Dimensions,EuclideanSpace,NtreeImg.PositionProvider,Interval,Iterator,Localizable,RealCursor<T>,RealInterval,RealLocalizable,Sampler<T>,Typed<T>
public final class NtreeCursor<T extends NativeType<T>> extends LocalizingIntervalIterator implements Cursor<T>, NtreeImg.PositionProvider
-
-
Field Summary
Fields Modifier and Type Field Description private NtreeImg<T,?>imgprivate Ttype-
Fields inherited from class net.imglib2.iterator.LocalizingIntervalIterator
position
-
Fields inherited from class net.imglib2.iterator.IntervalIterator
dimensions, index, lastIndex, steps
-
Fields inherited from class net.imglib2.AbstractInterval
max, min
-
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
-
Constructor Summary
Constructors Modifier Constructor Description privateNtreeCursor(NtreeCursor<T> cursor)NtreeCursor(NtreeImg<T,?> img)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NtreeCursor<T>copy()Tget()Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSamplerpoints at.long[]getPosition()TgetType()Get an instance ofT.-
Methods inherited from class net.imglib2.iterator.LocalizingIntervalIterator
fwd, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, jumpFwd, localize, localize, localize, localize, reset
-
Methods inherited from class net.imglib2.iterator.IntervalIterator
create, dimension, dimensions, getIndex, hasNext, toString
-
Methods inherited from class net.imglib2.AbstractInterval
max, max, max, min, min, min, realMax, realMax, realMax, realMin, realMin, realMin
-
Methods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.Cursor
copyCursor
-
Methods inherited from interface net.imglib2.Dimensions
dimensions, dimensionsAsLongArray, dimensionsAsPoint
-
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Methods inherited from interface net.imglib2.Interval
maxAsLongArray, maxAsPoint, minAsLongArray, minAsPoint
-
Methods inherited from interface net.imglib2.Localizable
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize, positionAsLongArray, positionAsPoint
-
Methods inherited from interface net.imglib2.RealCursor
next
-
Methods inherited from interface net.imglib2.RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
-
Methods inherited from interface net.imglib2.RealLocalizable
localize, localize, positionAsDoubleArray, positionAsRealPoint
-
-
-
-
Field Detail
-
img
private final NtreeImg<T extends NativeType<T>,?> img
-
type
private final T extends NativeType<T> type
-
-
Constructor Detail
-
NtreeCursor
private NtreeCursor(NtreeCursor<T> cursor)
-
-
Method Detail
-
get
public T get()
Description copied from interface:SamplerAccess the actual T instance providing access to a pixel, sub-pixel or integral region value theSamplerpoints at.- Specified by:
getin interfaceSampler<T extends NativeType<T>>
-
getType
public T getType()
Description copied from interface:TypedGet an instance ofT.It should not be assumed that the returned
Tinstance is an independent copy. In particular, repeated calls togetType()may return the same instance.- Specified by:
getTypein interfaceSampler<T extends NativeType<T>>- Specified by:
getTypein interfaceTyped<T extends NativeType<T>>- Returns:
- an instance of
T
-
copy
public NtreeCursor<T> copy()
- Specified by:
copyin interfaceCursor<T extends NativeType<T>>- Specified by:
copyin interfaceRealCursor<T extends NativeType<T>>- Specified by:
copyin interfaceSampler<T extends NativeType<T>>- Returns:
- - A new
Samplerin the same state accessing the same values. It does NOT copy T, just the state of theSampler. 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 anArrayCursorfor example)
-
getPosition
public long[] getPosition()
- Specified by:
getPositionin interfaceNtreeImg.PositionProvider
-
-