Package gov.nih.mipav.model.algorithms
Class ContourPlot.Iterators.ImgIterator<P extends ContourPlot.PixelBase>
java.lang.Object
gov.nih.mipav.model.algorithms.ContourPlot.Iterators.ImgIterator<P>
- Type Parameters:
P- the pixel type of this iterator
- All Implemented Interfaces:
Iterator<P>
- Enclosing class:
ContourPlot.Iterators
public static class ContourPlot.Iterators.ImgIterator<P extends ContourPlot.PixelBase>
extends Object
implements Iterator<P>
The standard
Iterator class for images.- Author:
- hageldave
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImgIterator(P px) Creates a new ImgIterator over the image of the specified pixel. -
Method Summary
-
Field Details
-
px
-
numValues
private final int numValues -
index
private int index
-
-
Constructor Details
-
ImgIterator
Creates a new ImgIterator over the image of the specified pixel. The specified pixel will be reused on every invocation ofnext()with incremented index.- Parameters:
px- pixel that will be used to iterate its image
-
-
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>
-