Class GradientSobel_Outer

java.lang.Object
boofcv.alg.filter.derivative.impl.GradientSobel_Outer

public class GradientSobel_Outer extends Object

While not as fast as GradientSobel it a big improvement over GradientSobel_Naive and much more readable. The general idea is that the outer diagonal elements are both read by the horizontal and vertical operations. This can be taken advantage of with some simple arithmetic to reduce the number of floating point operations and matrix reads and writes.

This code is being saved to avoid repeating past work and make it easier to understand other implementations.

See Also:
  • Constructor Details

    • GradientSobel_Outer

      public GradientSobel_Outer()
  • Method Details

    • process

      public static void process(GrayU8 orig, GrayS16 derivX, GrayS16 derivY)
      Computes derivative of GrayU8. None of the images can be sub-images.
    • process_sub

      public static void process_sub(GrayU8 orig, GrayS16 derivX, GrayS16 derivY)
      Computes derivative of GrayU8. Inputs can be sub-images.
    • process_sub

      public static void process_sub(GrayS16 orig, GrayS16 derivX, GrayS16 derivY)
    • process

      public static void process(GrayF32 orig, GrayF32 derivX, GrayF32 derivY)
      Computes derivative of GrayF32. None of the images can be sub-images.