Class ContourPlot.Iterators.ImgAreaSpliterator<P extends ContourPlot.PixelBase>

java.lang.Object
gov.nih.mipav.model.algorithms.ContourPlot.Iterators.ImgAreaSpliterator<P>
All Implemented Interfaces:
Spliterator<P>
Enclosing class:
ContourPlot.Iterators

public static final class ContourPlot.Iterators.ImgAreaSpliterator<P extends ContourPlot.PixelBase> extends Object implements Spliterator<P>
Spliterator class for images bound to a specific area
Author:
hageldave
  • Field Details

    • pixelSupplier

      private final Supplier<P extends ContourPlot.PixelBase> pixelSupplier
    • px

      private final P extends ContourPlot.PixelBase px
    • startX

      private final int startX
    • endXexcl

      private final int endXexcl
    • x

      private int x
    • y

      private int y
    • finalXexcl

      private int finalXexcl
    • finalYincl

      private int finalYincl
    • minimumSplitSize

      private final int minimumSplitSize
  • Constructor Details

    • ImgAreaSpliterator

      public ImgAreaSpliterator(int xStart, int yStart, int width, int height, int minSplitSize, Supplier<P> pixelSupplier)
      Constructs a new ImgAreaSpliterator for the specified area
      Parameters:
      xStart - left boundary of the area (inclusive)
      yStart - upper boundary of the area (inclusive)
      width - of the area
      height - of the area
      minSplitSize - the minimum number of elements in a split
      pixelSupplier - a function that allocates a new pixel
      Since:
      1.1
    • ImgAreaSpliterator

      private ImgAreaSpliterator(int xStart, int endXexcl, int x, int y, int finalXexcl, int finalYincl, int minSplitSize, Supplier<P> pixelSupplier)
  • Method Details