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()
Position5DIteratorreset in interface Position5DIteratorpublic void next()
Position5DIteratornext in interface Position5DIteratorpublic boolean done()
Position5DIteratordone in interface Position5DIteratorpublic Point5D get()
get in interface Position5DIteratorpublic int getX()
getX in interface Position5DIteratorpublic int getY()
getY in interface Position5DIteratorpublic int getC()
getC in interface Position5DIteratorpublic int getZ()
getZ in interface Position5DIteratorpublic int getT()
getT in interface Position5DIterator