Class SparseScaleGradient<T extends ImageGray<T>,G extends GradientValue>

All Implemented Interfaces:
SparseImageGradient<T,G>, SparseImageOperator<T>
Direct Known Subclasses:

public abstract class SparseScaleGradient<T extends ImageGray<T>,G extends GradientValue> extends Object implements SparseImageGradient<T,G>
Interface for SparseImageGradient whose size can be scaled up and down.
  • Field Details

    • input

      protected T extends ImageGray<T> input
    • x0

      protected int x0
    • y0

      protected int y0
    • x1

      protected int x1
    • y1

      protected int y1
  • Constructor Details

    • SparseScaleGradient

      public SparseScaleGradient()
  • Method Details

    • setWidth

      public abstract void setWidth(double width)
      Sets how wide the gradient operator is in pixels
      width - width in pixels
    • setImage

      public void setImage(T input)
      Description copied from interface: SparseImageOperator
      Specifies the image being processed.
      Specified by:
      setImage in interface SparseImageOperator<T extends ImageGray<T>>
      input - Image being processed
    • isInBounds

      public boolean isInBounds(int x, int y)
      Description copied from interface: SparseImageOperator
      Checks to see if the entire sample region is contained inside the image or not. Depending on the implementation it might be able to handle out of bounds pixels or not.
      Specified by:
      isInBounds in interface SparseImageOperator<T extends ImageGray<T>>