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:
java.util.Iterator<P>
- Enclosing class:
- ContourPlot.Iterators
public static class ContourPlot.Iterators.ImgIterator<P extends ContourPlot.PixelBase> extends java.lang.Object implements java.util.Iterator<P>
The standardIterator
class for images.- Author:
- hageldave
-
-
Constructor Summary
Constructors Constructor Description ImgIterator(P px)
Creates a new ImgIterator over the image of the specified pixel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forEachRemaining(java.util.function.Consumer<? super P> action)
boolean
hasNext()
P
next()
-
-
-
Field Detail
-
px
private final P extends ContourPlot.PixelBase px
-
numValues
private final int numValues
-
index
private int index
-
-
Method Detail
-
next
public P next()
- Specified by:
next
in interfacejava.util.Iterator<P extends ContourPlot.PixelBase>
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<P extends ContourPlot.PixelBase>
-
forEachRemaining
public void forEachRemaining(java.util.function.Consumer<? super P> action)
- Specified by:
forEachRemaining
in interfacejava.util.Iterator<P extends ContourPlot.PixelBase>
-
-