Package sc.fiji.snt.util
Class PathCursor<T>
java.lang.Object
sc.fiji.snt.util.PathCursor<T>
- All Implemented Interfaces:
Iterator<T>,net.imglib2.Cursor<T>,net.imglib2.EuclideanSpace,net.imglib2.Iterator,net.imglib2.Localizable,net.imglib2.RealCursor<T>,net.imglib2.RealLocalizable,net.imglib2.Sampler<T>,net.imglib2.Typed<T>
Iterate over the pixels along the defined nodes of a
Path- Author:
- Cameron Arshadi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.imglib2.Cursor<T> copy()voidfwd()get()doublegetDoublePosition(int d) floatgetFloatPosition(int d) intgetIntPosition(int d) longgetLongPosition(int d) booleanhasNext()voidjumpFwd(long steps) voidlocalize(double[] position) voidlocalize(float[] position) voidlocalize(int[] position) voidlocalize(long[] position) next()intvoidreset()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.imglib2.Cursor
copyCursorMethods inherited from interface java.util.Iterator
forEachRemaining, removeMethods inherited from interface net.imglib2.Localizable
localize, localize, positionAsLongArray, positionAsPointMethods inherited from interface net.imglib2.RealLocalizable
positionAsDoubleArray, positionAsRealPointMethods inherited from interface net.imglib2.Sampler
getType
-
Constructor Details
-
PathCursor
-
-
Method Details
-
copy
-
next
-
jumpFwd
public void jumpFwd(long steps) - Specified by:
jumpFwdin interfacenet.imglib2.Iterator
-
fwd
public void fwd()- Specified by:
fwdin interfacenet.imglib2.Iterator
-
reset
public void reset()- Specified by:
resetin interfacenet.imglib2.Iterator
-
hasNext
public boolean hasNext() -
localize
public void localize(float[] position) - Specified by:
localizein interfacenet.imglib2.RealLocalizable
-
localize
public void localize(double[] position) - Specified by:
localizein interfacenet.imglib2.RealLocalizable
-
localize
public void localize(int[] position) - Specified by:
localizein interfacenet.imglib2.Localizable
-
localize
public void localize(long[] position) - Specified by:
localizein interfacenet.imglib2.Localizable
-
getIntPosition
public int getIntPosition(int d) - Specified by:
getIntPositionin interfacenet.imglib2.Localizable
-
getLongPosition
public long getLongPosition(int d) - Specified by:
getLongPositionin interfacenet.imglib2.Localizable
-
getFloatPosition
public float getFloatPosition(int d) - Specified by:
getFloatPositionin interfacenet.imglib2.Localizable- Specified by:
getFloatPositionin interfacenet.imglib2.RealLocalizable
-
getDoublePosition
public double getDoublePosition(int d) - Specified by:
getDoublePositionin interfacenet.imglib2.Localizable- Specified by:
getDoublePositionin interfacenet.imglib2.RealLocalizable
-
numDimensions
public int numDimensions()- Specified by:
numDimensionsin interfacenet.imglib2.EuclideanSpace
-
get
- Specified by:
getin interfacenet.imglib2.Sampler<T>
-