public class DiamondNeighborhood.LocalCursor extends AbstractEuclideanSpace implements 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 RandomAccess<T> |
source |
n| Modifier | Constructor and Description |
|---|---|
protected |
LocalCursor(DiamondNeighborhood.LocalCursor c) |
|
LocalCursor(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 RandomAccess<T> source
protected final long[] ri
protected final long[] s
public LocalCursor(RandomAccess<T> source)
protected LocalCursor(DiamondNeighborhood.LocalCursor c)
public T getType()
public void fwd()
public void jumpFwd(long steps)
public T next()
public void reset()
public float getFloatPosition(int d)
getFloatPosition in interface LocalizablegetFloatPosition in interface RealLocalizablepublic double getDoublePosition(int d)
getDoublePosition in interface LocalizablegetDoublePosition in interface RealLocalizablepublic int getIntPosition(int d)
getIntPosition in interface Localizablepublic long getLongPosition(int d)
getLongPosition in interface Localizablepublic void localize(long[] position)
localize in interface Localizablepublic void localize(float[] position)
localize in interface RealLocalizablepublic void localize(double[] position)
localize in interface RealLocalizablepublic void localize(int[] position)
localize in interface Localizablepublic DiamondNeighborhood.LocalCursor copy()
Copyright © 2009–2024 ImgLib2. All rights reserved.