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

java.lang.Object
gov.nih.mipav.model.algorithms.ContourPlot.Iterators.ImgAreaIterator<P>
Type Parameters:
P - the pixel type of this iterator
All Implemented Interfaces:
Iterator<P>
Enclosing class:
ContourPlot.Iterators

public static class ContourPlot.Iterators.ImgAreaIterator<P extends ContourPlot.PixelBase> extends Object implements Iterator<P>
The standard iterator class for iterating over an area of an image.
Author:
hageldave
  • Field Details

    • px

      private final P extends ContourPlot.PixelBase px
    • xStart

      private final int xStart
    • yStart

      private final int yStart
    • width

      private final int width
    • height

      private final int height
    • x

      private int x
    • y

      private int y
  • Constructor Details

    • ImgAreaIterator

      public ImgAreaIterator(int xStart, int yStart, int width, int height, P px)
      Creates a new ImgAreaIterator for iterating the pixels in the specified area of an image. The iterated image is the source of the specified pixel. The specified pixel will be reused on every invocation of next() with incremented index.
      Parameters:
      xStart - the left boundary of the area (inclusive)
      yStart - the top boundary of the area (inclusive)
      width - of the area
      height - of the area
      px - the pixel used for iterating
  • Method Details