public class DiamondNeighborhood.LocalCursor extends net.imglib2.AbstractEuclideanSpace implements net.imglib2.Cursor<T>
| Modifier and Type | Field and Description |
|---|---|
protected long[] |
ri
The current radius in each dimension we are at.
|
protected long[] |
s
The remaining number of steps in each dimension we still have to go.
|
protected net.imglib2.RandomAccess<T> |
source |
n| Modifier | Constructor and Description |
|---|---|
protected |
LocalCursor(DiamondNeighborhood.LocalCursor c) |
|
LocalCursor(net.imglib2.RandomAccess<T> source) |
| Modifier and Type | Method and Description |
|---|---|
DiamondNeighborhood.LocalCursor |
copy() |
void |
fwd() |
T |
get() |
double |
getDoublePosition(int d) |
float |
getFloatPosition(int d) |
int |
getIntPosition(int d) |
long |
getLongPosition(int d) |
T |
getType() |
boolean |
hasNext() |
void |
jumpFwd(long steps) |
void |
localize(double[] position) |
void |
localize(float[] position) |
void |
localize(int[] position) |
void |
localize(long[] position) |
T |
next() |
void |
remove() |
void |
reset() |
numDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyCursorforEachRemaininglocalize, localize, positionAsLongArray, positionAsPointpositionAsDoubleArray, positionAsRealPointnumDimensionsprotected final net.imglib2.RandomAccess<T> source
protected final long[] ri
protected final long[] s
public LocalCursor(net.imglib2.RandomAccess<T> source)
protected LocalCursor(DiamondNeighborhood.LocalCursor c)
public T get()
get in interface net.imglib2.Sampler<T>public T getType()
getType in interface net.imglib2.Sampler<T>getType in interface net.imglib2.Typed<T>public void fwd()
public void jumpFwd(long steps)
public T next()
next in interface Iterator<T>next in interface net.imglib2.RealCursor<T>public void reset()
public float getFloatPosition(int d)
getFloatPosition in interface net.imglib2.LocalizablegetFloatPosition in interface net.imglib2.RealLocalizablepublic double getDoublePosition(int d)
getDoublePosition in interface net.imglib2.LocalizablegetDoublePosition in interface net.imglib2.RealLocalizablepublic int getIntPosition(int d)
getIntPosition in interface net.imglib2.Localizablepublic long getLongPosition(int d)
getLongPosition in interface net.imglib2.Localizablepublic void localize(long[] position)
localize in interface net.imglib2.Localizablepublic void localize(float[] position)
localize in interface net.imglib2.RealLocalizablepublic void localize(double[] position)
localize in interface net.imglib2.RealLocalizablepublic void localize(int[] position)
localize in interface net.imglib2.Localizablepublic DiamondNeighborhood.LocalCursor copy()
copy in interface net.imglib2.Cursor<T>copy in interface net.imglib2.RealCursor<T>copy in interface net.imglib2.Sampler<T>Copyright © 2009–2025 ImgLib2. All rights reserved.