Package gov.nih.mipav.model.algorithms
Class ContourPlot.Iterators
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.ContourPlot.Iterators
-
- Enclosing class:
- ContourPlot
public static final class ContourPlot.Iterators extends java.lang.ObjectClass holding all of theIteratorandSpliteratorclasses used in theContourPlot.ImgBaseinterface.NOTE ON ELEMENTS OF ITERATORS/SPLITERATORS
All of the iterators/spliterators in this class implement the following paradigm:
As image implementations typically use buffers or arrays of a native datatype as a representation of their pixel values, they are not collections of a pixel datatype. The pixel datatypes used here are thus pointers into an image's array data structure. When iterating the pixel data of an image, a pixel object will be reused for each image pixel. This is done to avoid excessive allocation of pixel objects and keep the garbage collector 'asleep' (as GC heavily impacts performance). This means that the elements (pixel objects) returned by an iterator/spliterator are not distinct.- Since:
- 2.0
- Author:
- hageldave
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContourPlot.Iterators.ColSpliterator<P extends ContourPlot.PixelBase>Special Spliterator which guarantees that each split will cover at least an entire column of the image.static classContourPlot.Iterators.ImgAreaIterator<P extends ContourPlot.PixelBase>The standard iterator class for iterating over an area of an image.static classContourPlot.Iterators.ImgAreaSpliterator<P extends ContourPlot.PixelBase>Spliterator class for images bound to a specific areastatic classContourPlot.Iterators.ImgIterator<P extends ContourPlot.PixelBase>The standardIteratorclass for images.static classContourPlot.Iterators.ImgSpliterator<P extends ContourPlot.PixelBase>The standardSpliteratorclass for images.static classContourPlot.Iterators.RowSpliterator<P extends ContourPlot.PixelBase>Special Spliterator for images which guarantees that each split will cover at least an entire row of the image.
-
Constructor Summary
Constructors Modifier Constructor Description privateIterators()
-