public class IntegralCursor<T> extends AbstractEuclideanSpace implements Cursor<T>
RectangleNeighborhoods. The cursor returns, for example in 2D, the
values at the following positions:
getCornerRepresentation() with 0s encoding (neighMin) and 1s
encoding (neighMax-1). The iteration order follows the (binary-reflected)
Gray code pattern such that only one dimension of the target position is
modified per move.n| Modifier | Constructor and Description |
|---|---|
protected |
IntegralCursor(IntegralCursor<T> cursor) |
|
IntegralCursor(RectangleNeighborhood<T> neighborhood) |
| Modifier and Type | Method and Description |
|---|---|
IntegralCursor<T> |
copy() |
IntegralCursor<T> |
copyCursor() |
void |
fwd() |
T |
get() |
int |
getCornerRepresentation() |
double |
getDoublePosition(int d) |
float |
getFloatPosition(int d) |
int |
getIntPosition(int d) |
long |
getLongPosition(int d) |
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, waitforEachRemaininglocalize, positionAsLongArray, positionAsPointlocalize, positionAsDoubleArray, positionAsRealPointnumDimensionspublic IntegralCursor(RectangleNeighborhood<T> neighborhood)
protected IntegralCursor(IntegralCursor<T> cursor)
public void reset()
public void fwd()
public void jumpFwd(long steps)
public IntegralCursor<T> copy()
public IntegralCursor<T> copyCursor()
copyCursor in interface Cursor<T>copyCursor in interface RealCursor<T>public int getCornerRepresentation()
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 LocalizableCopyright © 2014–2022 ImageJ. All rights reserved.