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.Object
Class holding all of theIterator
andSpliterator
classes used in theContourPlot.ImgBase
interface.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 class
ContourPlot.Iterators.ColSpliterator<P extends ContourPlot.PixelBase>
Special Spliterator which guarantees that each split will cover at least an entire column of the image.static class
ContourPlot.Iterators.ImgAreaIterator<P extends ContourPlot.PixelBase>
The standard iterator class for iterating over an area of an image.static class
ContourPlot.Iterators.ImgAreaSpliterator<P extends ContourPlot.PixelBase>
Spliterator class for images bound to a specific areastatic class
ContourPlot.Iterators.ImgIterator<P extends ContourPlot.PixelBase>
The standardIterator
class for images.static class
ContourPlot.Iterators.ImgSpliterator<P extends ContourPlot.PixelBase>
The standardSpliterator
class for images.static class
ContourPlot.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 private
Iterators()
-