Package gov.nih.mipav.model.algorithms
Class ContourPlot.Iterators
java.lang.Object
gov.nih.mipav.model.algorithms.ContourPlot.Iterators
- Enclosing class:
ContourPlot
Class holding all of the
Iterator and Spliterator classes
used in the ContourPlot.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 ClassesModifier and TypeClassDescriptionstatic final classSpecial Spliterator which guarantees that each split will cover at least an entire column of the image.static classThe standard iterator class for iterating over an area of an image.static final classSpliterator class for images bound to a specific areastatic classThe standardIteratorclass for images.static final classThe standardSpliteratorclass for images.static final classSpecial Spliterator for images which guarantees that each split will cover at least an entire row of the image. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Iterators
private Iterators()
-