Interface SparseImageGradient<T extends ImageGray<T>,G extends GradientValue>

All Superinterfaces:
SparseImageOperator<T>
All Known Implementing Classes:
GradientSparsePrewitt_F32, GradientSparsePrewitt_U8, GradientSparseSobel_F32, GradientSparseSobel_U8, GradientSparseThree_F32, GradientSparseThree_U8, GradientSparseTwo0_F32, GradientSparseTwo0_U8, GradientSparseTwo1_F32, GradientSparseTwo1_U8, SparseGradientSafe, SparseIntegralGradient_NoBorder, SparseIntegralGradient_NoBorder_F32, SparseIntegralGradient_NoBorder_I32, SparseIntegralGradientKernel, SparseIntegralHaar_NoBorder_F32, SparseIntegralHaar_NoBorder_I32, SparseScaleGradient

public interface SparseImageGradient<T extends ImageGray<T>,G extends GradientValue> extends SparseImageOperator<T>
Computes the image gradient on a per pixel basis.
  • Method Details

    • compute

      G compute(int x, int y)
      Computes the gradient at the specified point.
      Parameters:
      x - x-axis pixel coordinate
      y - y-axis pixel coordinate
      Returns:
      Gradient at that point.
    • getGradientType

      Class<G> getGradientType()