Class GradientPrewitt


  • public class GradientPrewitt
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      GradientPrewitt()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boofcv.struct.convolve.Kernel2D getKernelX​(boolean isInteger)
      Returns the kernel for computing the derivative along the x-axis.
      static void process​(boofcv.struct.image.GrayF32 orig, boofcv.struct.image.GrayF32 derivX, boofcv.struct.image.GrayF32 derivY, boofcv.struct.border.ImageBorder_F32 border)
      Computes the derivative in the X and Y direction using a floating point Prewitt edge detector.
      static void process​(boofcv.struct.image.GrayS16 orig, boofcv.struct.image.GrayS16 derivX, boofcv.struct.image.GrayS16 derivY, boofcv.struct.border.ImageBorder_S32 border)
      Computes the derivative in the X and Y direction using an integer Prewitt edge detector.
      static void process​(boofcv.struct.image.GrayU8 orig, boofcv.struct.image.GrayS16 derivX, boofcv.struct.image.GrayS16 derivY, boofcv.struct.border.ImageBorder_S32 border)
      Computes the derivative in the X and Y direction using an integer Prewitt edge detector.
      static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      void
      process​(I input, D derivX, D derivY, boofcv.struct.border.ImageBorder border)  
      • Methods inherited from class java.lang.Object

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

      • kernelDerivX_I32

        public static boofcv.struct.convolve.Kernel2D_S32 kernelDerivX_I32
      • kernelDerivY_I32

        public static boofcv.struct.convolve.Kernel2D_S32 kernelDerivY_I32
      • kernelDerivX_F32

        public static boofcv.struct.convolve.Kernel2D_F32 kernelDerivX_F32
      • kernelDerivY_F32

        public static boofcv.struct.convolve.Kernel2D_F32 kernelDerivY_F32
    • Constructor Detail

      • GradientPrewitt

        public GradientPrewitt()
    • Method Detail

      • getKernelX

        public static boofcv.struct.convolve.Kernel2D getKernelX​(boolean isInteger)
        Returns the kernel for computing the derivative along the x-axis.
      • process

        public static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>> void process​(I input,
                                                                                                                                 D derivX,
                                                                                                                                 D derivY,
                                                                                                                                 @Nullable
                                                                                                                                 boofcv.struct.border.ImageBorder border)
      • process

        public static void process​(boofcv.struct.image.GrayU8 orig,
                                   boofcv.struct.image.GrayS16 derivX,
                                   boofcv.struct.image.GrayS16 derivY,
                                   @Nullable
                                   boofcv.struct.border.ImageBorder_S32 border)
        Computes the derivative in the X and Y direction using an integer Prewitt edge detector.
        Parameters:
        orig - Input image. Not modified.
        derivX - Storage for image derivative along the x-axis. Modified.
        derivY - Storage for image derivative along the y-axis. Modified.
        border - Specifies how the image border is handled. If null the border is not processed.
      • process

        public static void process​(boofcv.struct.image.GrayS16 orig,
                                   boofcv.struct.image.GrayS16 derivX,
                                   boofcv.struct.image.GrayS16 derivY,
                                   @Nullable
                                   boofcv.struct.border.ImageBorder_S32 border)
        Computes the derivative in the X and Y direction using an integer Prewitt edge detector.
        Parameters:
        orig - Input image. Not modified.
        derivX - Storage for image derivative along the x-axis. Modified.
        derivY - Storage for image derivative along the y-axis. Modified.
        border - Specifies how the image border is handled. If null the border is not processed.
      • process

        public static void process​(boofcv.struct.image.GrayF32 orig,
                                   boofcv.struct.image.GrayF32 derivX,
                                   boofcv.struct.image.GrayF32 derivY,
                                   @Nullable
                                   boofcv.struct.border.ImageBorder_F32 border)
        Computes the derivative in the X and Y direction using a floating point Prewitt edge detector.
        Parameters:
        orig - Input image. Not modified.
        derivX - Storage for image derivative along the x-axis. Modified.
        derivY - Storage for image derivative along the y-axis. Modified.
        border - Specifies how the image border is handled. If null the border is not processed.