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:
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
FieldsFields inherited from class net.imglib2.iterator.LocalizingIntervalIterator
positionFields inherited from class net.imglib2.iterator.IntervalIterator
dimensions, index, lastIndex, stepsFields inherited from class net.imglib2.AbstractInterval
max, minFields inherited from class net.imglib2.AbstractEuclideanSpace
n -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateNtreeCursor(NtreeCursor<T> cursor) NtreeCursor(NtreeImg<T, ?> img) -
Method Summary
Methods inherited from class net.imglib2.iterator.LocalizingIntervalIterator
fwd, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, jumpFwd, localize, localize, localize, localize, resetMethods inherited from class net.imglib2.iterator.IntervalIterator
create, dimension, dimensions, getIndex, hasNext, toStringMethods inherited from class net.imglib2.AbstractInterval
max, max, max, min, min, min, realMax, realMax, realMax, realMin, realMin, realMinMethods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.imglib2.Cursor
copyCursorMethods inherited from interface net.imglib2.Dimensions
dimensions, dimensionsAsLongArray, dimensionsAsPointMethods inherited from interface net.imglib2.EuclideanSpace
numDimensionsMethods inherited from interface net.imglib2.Interval
maxAsLongArray, maxAsPoint, minAsLongArray, minAsPointMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, removeMethods inherited from interface net.imglib2.Localizable
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize, positionAsLongArray, positionAsPointMethods inherited from interface net.imglib2.RealCursor
nextMethods inherited from interface net.imglib2.RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPointMethods inherited from interface net.imglib2.RealLocalizable
localize, localize, positionAsDoubleArray, positionAsRealPoint
-
Field Details
-
img
-
type
-
-
Constructor Details
-
NtreeCursor
-
NtreeCursor
-
-
Method Details
-
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
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
- 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
-