Package net.imglib2
Class FlatIterationOrder
- java.lang.Object
-
- net.imglib2.FlatIterationOrder
-
public class FlatIterationOrder extends java.lang.ObjectA flat iteration order on anIterableInterval. Flat iteration order means that cursors iterate line by line, plane by plane, etc. For instance a 3D interval ranging from (0,0,0) to (1,1,1) is iterated like (0,0,0), (1,0,0), (0,1,0), (1,1,0), (0,0,1), (1,0,1), (0,1,1), (1,1,1)
-
-
Constructor Summary
Constructors Constructor Description FlatIterationOrder(Interval interval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)private java.util.List<java.lang.Integer>validIndices(Interval i)
-
-
-
Field Detail
-
interval
private final Interval interval
-
-
Constructor Detail
-
FlatIterationOrder
public FlatIterationOrder(Interval interval)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
TwoIntervals are considered to have same iteration order if twoCursors return the same position in each iteration step, excluding dimensions of size 1.In some cases the equals method is too restrictive, i.e. we have false negatives: e.g., both objects must be instances of
FlatIterationOrderin order to be reported as equal.TODO: consider improving this definition
- Overrides:
equalsin classjava.lang.Object- Returns:
- true, if obj is a compatible
FlatIterationOrder.
-
validIndices
private java.util.List<java.lang.Integer> validIndices(Interval i)
-
-