public class SequenceDataIterator extends java.lang.Object implements DataIterator
Sequence
dataDataType
data is returned and set as double.Constructor and Description |
---|
SequenceDataIterator(Sequence sequence)
Create a new SequenceData iterator to iterate all data.
|
SequenceDataIterator(Sequence sequence,
int z,
int t,
int c)
Create a new SequenceData iterator to iterate data of specified channel.
|
SequenceDataIterator(Sequence sequence,
int startX,
int endX,
int startY,
int endY,
int c,
int z,
int t)
Deprecated.
|
SequenceDataIterator(Sequence sequence,
int startX,
int endX,
int startY,
int endY,
int startC,
int endC,
int startZ,
int endZ,
int startT,
int endT)
Deprecated.
|
SequenceDataIterator(Sequence sequence,
Rectangle5D.Integer bounds5D)
Create a new SequenceData iterator to iterate data through the specified 5D region
(inclusive).
|
SequenceDataIterator(Sequence sequence,
java.awt.Rectangle XYBounds,
int z,
int t,
int c)
Create a new SequenceData iterator to iterate data through the specified dimensions
(inclusive).
|
SequenceDataIterator(Sequence sequence,
ROI roi)
Create a new SequenceData iterator to iterate data through the specified ROI.
|
SequenceDataIterator(Sequence sequence,
ROI roi,
boolean inclusive)
Create a new SequenceData iterator to iterate data through the specified ROI.
|
SequenceDataIterator(Sequence sequence,
ROI roi,
boolean inclusive,
int z,
int t,
int c)
Create a new SequenceData iterator to iterate data through the specified ROI.
|
Modifier and Type | Method and Description |
---|---|
boolean |
done()
Returns true if the iterator has no more elements.
|
void |
flush()
Ensure changed data are correctly saved back to original data source (should be called at the end)
|
double |
get()
Returns the current element in the iteration.
|
int |
getPositionC()
Return current C position.
|
int |
getPositionT()
Return current T position.
|
int |
getPositionX()
Return current X position.
|
int |
getPositionY()
Return current Y position.
|
int |
getPositionZ()
Return current Z position.
|
void |
next()
Pass to the next element.
|
void |
reset()
Reset iterator to initial position.
|
void |
set(double value)
Sets the current element in the iteration and pass to the next.
|
public SequenceDataIterator(Sequence sequence, Rectangle5D.Integer bounds5D)
sequence
- Sequence we want to iterate data frombounds5D
- the 5D rectangular region we want to iteratepublic SequenceDataIterator(Sequence sequence, java.awt.Rectangle XYBounds, int z, int t, int c)
sequence
- Sequence we want to iterate data fromXYBounds
- XY region to iteratez
- Z position (stack) we want to iterate datat
- T position (time) we want to iterate datac
- C position (channel) we want to iterate data@Deprecated public SequenceDataIterator(Sequence sequence, int startX, int endX, int startY, int endY, int startC, int endC, int startZ, int endZ, int startT, int endT)
SequenceDataIterator(Sequence, Rectangle5D.Integer)
instead@Deprecated public SequenceDataIterator(Sequence sequence, int startX, int endX, int startY, int endY, int c, int z, int t)
SequenceDataIterator(Sequence, Rectangle, int, int, int)
insteadpublic SequenceDataIterator(Sequence sequence, int z, int t, int c)
sequence
- Sequence we want to iterate data fromz
- Z position (stack) we want to iterate datat
- T position (time) we want to iterate datac
- C position (channel) we want to iterate datapublic SequenceDataIterator(Sequence sequence)
sequence
- Sequence we want to iterate data from.public SequenceDataIterator(Sequence sequence, ROI roi, boolean inclusive, int z, int t, int c)
sequence
- Sequence we want to iterate data from.roi
- ROI defining the region to iterate.inclusive
- If true then all partially contained (intersected) pixels in the ROI are included.z
- The specific Z position (slice) we want to iterate or -1
to iterate over
the whole ROI Z dimension.t
- The specific T position (frame) we want to iterate or -1
to iterate over
the whole ROI T dimension.c
- The specific C position (channel) we want to iterate or -1
to iterate
over the whole ROI C dimension.public SequenceDataIterator(Sequence sequence, ROI roi, boolean inclusive)
sequence
- Sequence we want to iterate data from.roi
- ROI defining the region to iterate.inclusive
- If true then all partially contained (intersected) pixels in the ROI are included.public SequenceDataIterator(Sequence sequence, ROI roi)
sequence
- Sequence we want to iterate data from.roi
- ROI defining the region to iterate.public void reset()
DataIterator
reset
in interface DataIterator
public void next()
DataIterator
next
in interface DataIterator
public boolean done()
DataIterator
done
in interface DataIterator
public double get()
DataIterator
get
in interface DataIterator
public void set(double value)
DataIterator
set
in interface DataIterator
public int getPositionX()
public int getPositionY()
public int getPositionC()
public int getPositionZ()
public int getPositionT()
public void flush()