public class ROIIterator extends java.lang.Object implements Position5DIterator
Constructor and Description |
---|
ROIIterator(ROI roi,
boolean inclusive)
Create a new ROI iterator to iterate through each point of the specified ROI.
|
ROIIterator(ROI roi,
Rectangle5D region,
boolean inclusive)
Create a new ROI iterator to iterate through each point of the specified ROI.
|
Modifier and Type | Method and Description |
---|---|
boolean |
done()
Returns true if the iterator has no more elements.
|
Point5D |
get() |
int |
getC() |
int |
getMaxC() |
int |
getMaxT() |
int |
getMaxZ() |
int |
getMinC() |
int |
getMinT() |
int |
getMinZ() |
int |
getT() |
int |
getX() |
int |
getY() |
int |
getZ() |
void |
next()
Pass to the next element.
|
void |
reset()
Reset iterator to initial position.
|
public ROIIterator(ROI roi, Rectangle5D region, boolean inclusive)
roi
- ROI defining the region to iterate.region
- A 5D region to limit the ROI region area to iterate for.null
to iterate all over the ROI.inclusive
- If true then all partially contained (intersected) pixels in the ROI are included.public ROIIterator(ROI roi, boolean inclusive)
roi
- ROI defining the region to iterate.inclusive
- If true then all partially contained (intersected) pixels in the ROI are included.public int getMinZ()
public int getMaxZ()
public int getMinT()
public int getMaxT()
public int getMinC()
public int getMaxC()
public void reset()
Position5DIterator
reset
in interface Position5DIterator
public void next()
Position5DIterator
next
in interface Position5DIterator
public boolean done()
Position5DIterator
done
in interface Position5DIterator
public Point5D get()
get
in interface Position5DIterator
public int getX()
getX
in interface Position5DIterator
public int getY()
getY
in interface Position5DIterator
public int getC()
getC
in interface Position5DIterator
public int getZ()
getZ
in interface Position5DIterator
public int getT()
getT
in interface Position5DIterator