Class GradientSobel_Outer_MT


  • public class GradientSobel_Outer_MT
    extends java.lang.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:
    GradientSobel
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void process​(boofcv.struct.image.GrayF32 orig, boofcv.struct.image.GrayF32 derivX, boofcv.struct.image.GrayF32 derivY)
      Computes derivative of GrayF32.
      static void process​(boofcv.struct.image.GrayU8 orig, boofcv.struct.image.GrayS16 derivX, boofcv.struct.image.GrayS16 derivY)
      Computes derivative of GrayU8.
      static void process_sub​(boofcv.struct.image.GrayS16 orig, boofcv.struct.image.GrayS16 derivX, boofcv.struct.image.GrayS16 derivY)  
      static void process_sub​(boofcv.struct.image.GrayU8 orig, boofcv.struct.image.GrayS16 derivX, boofcv.struct.image.GrayS16 derivY)
      Computes derivative of GrayU8.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GradientSobel_Outer_MT

        public GradientSobel_Outer_MT()
    • Method Detail

      • process

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

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

        public static void process_sub​(boofcv.struct.image.GrayS16 orig,
                                       boofcv.struct.image.GrayS16 derivX,
                                       boofcv.struct.image.GrayS16 derivY)
      • process

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