public class IntegralCursor<T> extends AbstractEuclideanSpace implements Cursor<T>
RectangleNeighborhood
s. 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() |
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
localize, positionAsLongArray, positionAsPoint
localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
public 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 Localizable
getFloatPosition
in interface RealLocalizable
public double getDoublePosition(int d)
getDoublePosition
in interface Localizable
getDoublePosition
in interface RealLocalizable
public int getIntPosition(int d)
getIntPosition
in interface Localizable
public long getLongPosition(int d)
getLongPosition
in interface Localizable
public void localize(long[] position)
localize
in interface Localizable
public void localize(float[] position)
localize
in interface RealLocalizable
public void localize(double[] position)
localize
in interface RealLocalizable
public void localize(int[] position)
localize
in interface Localizable
Copyright © 2014–2022 ImageJ. All rights reserved.