public class ImageDataIterator extends java.lang.Object implements DataIterator
IcyBufferedImage dataDataType data is returned and set as double.| Constructor and Description |
|---|
ImageDataIterator(IcyBufferedImage image)
Deprecated.
Use
ImageDataIterator(IcyBufferedImage, int) instead.The ImageDataIterator iterate only on single channel data. |
ImageDataIterator(IcyBufferedImage image,
BooleanMask2D maskXY)
Deprecated.
|
ImageDataIterator(IcyBufferedImage image,
BooleanMask2D maskXY,
int channel)
Create a new ImageData iterator to iterate data through the specified
BooleanMask2D and C dimension. |
ImageDataIterator(IcyBufferedImage image,
int c)
Create a new ImageData iterator to iterate data of specified channel.
|
ImageDataIterator(IcyBufferedImage image,
int startX,
int endX,
int startY,
int endY,
int c)
Deprecated.
Use
ImageDataIterator(IcyBufferedImage, Rectangle, int) instead. |
ImageDataIterator(IcyBufferedImage image,
int startX,
int endX,
int startY,
int endY,
int startC,
int endC)
Deprecated.
Use
ImageDataIterator(IcyBufferedImage, Rectangle, int) instead. |
ImageDataIterator(IcyBufferedImage image,
java.awt.Rectangle boundsXY,
int channel)
Create a new ImageData iterator to iterate data through the specified XY region and channel.
|
ImageDataIterator(IcyBufferedImage image,
ROI roi)
Deprecated.
Use
ImageDataIterator(IcyBufferedImage, BooleanMask2D, int) instead.
You can use the ROI.getBooleanMask2D(int, int, int, boolean) method to
retrieve the boolean mask from the ROI. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
done()
Returns true if the iterator has no more elements.
|
void |
flush() |
double |
get()
Returns the current element in the iteration.
|
int |
getC()
Returns C position (fixed)
|
int |
getMaxX() |
int |
getMaxY() |
int |
getMinX() |
int |
getMinY() |
int |
getPositionC()
Deprecated.
Use
getC() instead |
int |
getPositionX()
Deprecated.
Use
getX() instead |
int |
getPositionY()
Deprecated.
Use
getY() instead |
int |
getX()
Returns current X position.
|
int |
getY()
Returns current Y 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 ImageDataIterator(IcyBufferedImage image, java.awt.Rectangle boundsXY, int channel)
image - Image we want to iterate data fromboundsXY - XY region to iterate (inclusive).channel - channel (C position) we want to iterate data@Deprecated public ImageDataIterator(IcyBufferedImage image, int startX, int endX, int startY, int endY, int startC, int endC)
ImageDataIterator(IcyBufferedImage, Rectangle, int) instead.@Deprecated public ImageDataIterator(IcyBufferedImage image, int startX, int endX, int startY, int endY, int c)
ImageDataIterator(IcyBufferedImage, Rectangle, int) instead.public ImageDataIterator(IcyBufferedImage image, int c)
image - Image we want to iterate data fromc - C position (channel) we want to iterate data@Deprecated public ImageDataIterator(IcyBufferedImage image)
ImageDataIterator(IcyBufferedImage, int) instead.ImageDataIterator iterate only on single channel data.public ImageDataIterator(IcyBufferedImage image, BooleanMask2D maskXY, int channel)
BooleanMask2D and C dimension.image - Image we want to iterate data frommaskXY - BooleanMask2D defining the XY region to iteratechannel - channel (C position) we want to iterate data@Deprecated public ImageDataIterator(IcyBufferedImage image, BooleanMask2D maskXY)
ImageDataIterator(IcyBufferedImage, BooleanMask2D, int) instead@Deprecated public ImageDataIterator(IcyBufferedImage image, ROI roi)
ImageDataIterator(IcyBufferedImage, BooleanMask2D, int) instead.
You can use the ROI.getBooleanMask2D(int, int, int, boolean) method to
retrieve the boolean mask from the ROI.public int getMinX()
public int getMaxX()
public int getMinY()
public int getMaxY()
public void reset()
DataIteratorreset in interface DataIteratorpublic void next()
DataIteratornext in interface DataIteratorpublic boolean done()
DataIteratordone in interface DataIteratorpublic double get()
DataIteratorget in interface DataIteratorpublic void set(double value)
DataIteratorset in interface DataIteratorpublic int getX()
public int getY()
public int getC()
@Deprecated public int getPositionX()
getX() instead@Deprecated public int getPositionY()
getY() instead@Deprecated public int getPositionC()
getC() insteadpublic void flush()