public class RealIntervalIterator extends AbstractRealInterval implements Iterator, RealLocalizable
RealInterval
in flat order, that is:
row by row, plane by plane, cube by cube, ... at a particular spacing.Modifier and Type | Field and Description |
---|---|
protected double[] |
location |
protected double[] |
step |
max, min
n
Constructor and Description |
---|
RealIntervalIterator(double[] min,
double[] max,
double[] steps)
Iterates an
Interval with given min and max. |
RealIntervalIterator(RealInterval interval,
double[] step)
Iterates an
Interval of the given dimensions with min=
0n |
Modifier and Type | Method and Description |
---|---|
void |
fwd() |
double |
getDoublePosition(int d) |
float |
getFloatPosition(int d) |
boolean |
hasNext() |
void |
jumpFwd(long steps) |
void |
localize(double[] position) |
void |
localize(float[] position) |
void |
reset() |
String |
toString() |
realMax, realMax, realMax, realMin, realMin, realMin
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
public RealIntervalIterator(RealInterval interval, double[] step)
Interval
of the given dimensions with min=
0ninterval
- step
- public RealIntervalIterator(double[] min, double[] max, double[] steps)
Interval
with given min and max.min
- max
- public String toString()
toString
in class AbstractRealInterval
public void localize(float[] position)
localize
in interface RealLocalizable
public void localize(double[] position)
localize
in interface RealLocalizable
public float getFloatPosition(int d)
getFloatPosition
in interface RealLocalizable
public double getDoublePosition(int d)
getDoublePosition
in interface RealLocalizable
Copyright © 2015–2021 Fiji. All rights reserved.