Class GGradientToEdgeFeatures

java.lang.Object
boofcv.alg.feature.detect.edge.GGradientToEdgeFeatures

public class GGradientToEdgeFeatures extends Object
Image type agnostic version of GradientToEdgeFeatures.
  • Constructor Details

    • GGradientToEdgeFeatures

      public GGradientToEdgeFeatures()
  • Method Details

    • intensityE

      public static <D extends ImageGray<D>> void intensityE(D derivX, D derivY, GrayF32 intensity)
      Computes the edge intensity using a Euclidean norm.
      Parameters:
      derivX - Derivative along x-axis. Not modified.
      derivY - Derivative along y-axis. Not modified.
      intensity - Edge intensity.
    • intensityAbs

      public static <D extends ImageGray<D>> void intensityAbs(D derivX, D derivY, GrayF32 intensity)
      Computes the edge intensity using a Euclidean norm.
      Parameters:
      derivX - Derivative along x-axis. Not modified.
      derivY - Derivative along y-axis. Not modified.
      intensity - Edge intensity.
    • direction

      public static <D extends ImageGray<D>> void direction(D derivX, D derivY, GrayF32 angle)
      Computes the edge orientation using the Math.atan(double) function.
      Parameters:
      derivX - Derivative along x-axis. Not modified.
      derivY - Derivative along y-axis. Not modified.
      angle - Edge orientation in radians (-pi/2 to pi/2).
    • direction2

      public static <D extends ImageGray<D>> void direction2(D derivX, D derivY, GrayF32 angle)
      Computes the edge orientation using the Math.atan2(double, double) function.
      Parameters:
      derivX - Derivative along x-axis. Not modified.
      derivY - Derivative along y-axis. Not modified.
      angle - Edge orientation in radians (-pi to pi).
    • nonMaxSuppressionCrude4

      public static <D extends ImageGray<D>> void nonMaxSuppressionCrude4(GrayF32 intensity, D derivX, D derivY, GrayF32 output)

      Sets edge intensities to zero if the pixel has an intensity which is less than any of the two adjacent pixels. Pixel adjacency is determined based upon the sign of the image gradient. Less precise than other methods, but faster.

      Parameters:
      intensity - Edge intensities. Not modified.
      derivX - Image derivative along x-axis.
      derivY - Image derivative along y-axis.
      output - Filtered intensity. Modified.