Package gov.nih.mipav.model.algorithms
Class ContourPlot.Iterators.ImgAreaIterator<P extends ContourPlot.PixelBase>
java.lang.Object
gov.nih.mipav.model.algorithms.ContourPlot.Iterators.ImgAreaIterator<P>
- Type Parameters:
P- the pixel type of this iterator
- All Implemented Interfaces:
Iterator<P>
- Enclosing class:
ContourPlot.Iterators
public static class ContourPlot.Iterators.ImgAreaIterator<P extends ContourPlot.PixelBase>
extends Object
implements Iterator<P>
The standard iterator class for iterating over an area of an image.
- Author:
- hageldave
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImgAreaIterator(int xStart, int yStart, int width, int height, P px) Creates a new ImgAreaIterator for iterating the pixels in the specified area of an image. -
Method Summary
-
Field Details
-
px
-
xStart
private final int xStart -
yStart
private final int yStart -
width
private final int width -
height
private final int height -
x
private int x -
y
private int y
-
-
Constructor Details
-
ImgAreaIterator
Creates a new ImgAreaIterator for iterating the pixels in the specified area of an image. The iterated image is the source of the specified pixel. The specified pixel will be reused on every invocation ofnext()with incremented index.- Parameters:
xStart- the left boundary of the area (inclusive)yStart- the top boundary of the area (inclusive)width- of the areaheight- of the areapx- the pixel used for iterating
-
-
Method Details
-
next
- Specified by:
nextin interfaceIterator<P extends ContourPlot.PixelBase>
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<P extends ContourPlot.PixelBase>
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceIterator<P extends ContourPlot.PixelBase>
-