Class GConvolveImageOps


  • public class GConvolveImageOps
    extends java.lang.Object
    Image type agnostic convolution functions
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <In extends boofcv.struct.image.ImageBase<In>,​Out extends boofcv.struct.image.ImageBase<Out>,​K extends boofcv.struct.convolve.Kernel2D>
      void
      convolve​(K kernel, In input, Out output)
      Performs a 2D convolution across the image.
      static <In extends boofcv.struct.image.ImageBase<In>,​Out extends boofcv.struct.image.ImageBase<Out>,​K extends boofcv.struct.convolve.Kernel2D,​B extends boofcv.struct.border.ImageBorder<In>>
      void
      convolve​(K kernel, In input, Out output, B border)
      Performs a 2D convolution across the image.
      static <T extends boofcv.struct.image.ImageBase<T>,​K extends boofcv.struct.convolve.Kernel2D>
      void
      convolveNormalized​(K kernel, T input, T output)
      Performs a 2D convolution across the image while re-normalizing the kernel depending on its overlap with the image.
      static <T extends boofcv.struct.image.ImageBase<T>,​K extends boofcv.struct.convolve.Kernel2D>
      void
      convolveNormalized​(K kernel, T input, T output, boofcv.struct.border.ImageBorder border)
      Performs a 2D convolution across the image while re-normalizing the kernel depending on its overlap with the image.
      static <In extends boofcv.struct.image.ImageBase<In>,​Out extends boofcv.struct.image.ImageBase<Out>,​K extends boofcv.struct.convolve.Kernel1D>
      void
      horizontal​(K kernel, In input, Out output)
      Performs a horizontal 1D convolution across the image.
      static <In extends boofcv.struct.image.ImageBase<In>,​Out extends boofcv.struct.image.ImageBase<Out>,​K extends boofcv.struct.convolve.Kernel1D,​B extends boofcv.struct.border.ImageBorder<In>>
      void
      horizontal​(K kernel, In input, Out output, B border)
      Performs a horizontal 1D convolution across the image.
      static <In extends boofcv.struct.image.ImageBase,​Out extends boofcv.struct.image.ImageBase,​K extends boofcv.struct.convolve.Kernel1D>
      void
      horizontalNormalized​(K kernel, In input, Out output)
      Performs a horizontal 1D convolution across the image while re-normalizing the kernel depending on its overlap with the image.
      static <In extends boofcv.struct.image.ImageBase<In>,​Out extends boofcv.struct.image.ImageBase<Out>,​K extends boofcv.struct.convolve.Kernel1D>
      void
      vertical​(K kernel, In input, Out output)
      Performs a horizontal 1D convolution across the image.
      static <In extends boofcv.struct.image.ImageBase<In>,​Out extends boofcv.struct.image.ImageBase<Out>,​K extends boofcv.struct.convolve.Kernel1D,​B extends boofcv.struct.border.ImageBorder<In>>
      void
      vertical​(K kernel, In input, Out output, B border)
      Performs a vertical 1D convolution across the image.
      static <T extends boofcv.struct.image.ImageBase<T>,​K extends boofcv.struct.convolve.Kernel1D>
      void
      verticalNormalized​(K kernel, T input, T output)
      Performs a vertical 1D convolution across the image while re-normalizing the kernel depending on its overlap with the image.
      • Methods inherited from class java.lang.Object

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

      • GConvolveImageOps

        public GConvolveImageOps()
    • Method Detail

      • horizontal

        public static <In extends boofcv.struct.image.ImageBase<In>,​Out extends boofcv.struct.image.ImageBase<Out>,​K extends boofcv.struct.convolve.Kernel1D,​B extends boofcv.struct.border.ImageBorder<In>> void horizontal​(K kernel,
                                                                                                                                                                                                                                               In input,
                                                                                                                                                                                                                                               Out output,
                                                                                                                                                                                                                                               B border)
        Performs a horizontal 1D convolution across the image. Borders are handled as specified by the 'border' parameter.
        Parameters:
        input - The original image. Not modified.
        output - Where the resulting image is written to. Modified.
        kernel - The kernel that is being convolved. Not modified.
        border - How the image borders are handled.
      • vertical

        public static <In extends boofcv.struct.image.ImageBase<In>,​Out extends boofcv.struct.image.ImageBase<Out>,​K extends boofcv.struct.convolve.Kernel1D,​B extends boofcv.struct.border.ImageBorder<In>> void vertical​(K kernel,
                                                                                                                                                                                                                                             In input,
                                                                                                                                                                                                                                             Out output,
                                                                                                                                                                                                                                             B border)
        Performs a vertical 1D convolution across the image. Borders are handled as specified by the 'border' parameter.
        Parameters:
        input - The original image. Not modified.
        output - Where the resulting image is written to. Modified.
        kernel - The kernel that is being convolved. Not modified.
        border - How the image borders are handled.
      • convolve

        public static <In extends boofcv.struct.image.ImageBase<In>,​Out extends boofcv.struct.image.ImageBase<Out>,​K extends boofcv.struct.convolve.Kernel2D,​B extends boofcv.struct.border.ImageBorder<In>> void convolve​(K kernel,
                                                                                                                                                                                                                                             In input,
                                                                                                                                                                                                                                             Out output,
                                                                                                                                                                                                                                             B border)
        Performs a 2D convolution across the image. Borders are handled as specified by the 'border' parameter.
        Parameters:
        input - The original image. Not modified.
        output - Where the resulting image is written to. Modified.
        kernel - The kernel that is being convolved. Not modified.
        border - How the image borders are handled.
      • horizontal

        public static <In extends boofcv.struct.image.ImageBase<In>,​Out extends boofcv.struct.image.ImageBase<Out>,​K extends boofcv.struct.convolve.Kernel1D> void horizontal​(K kernel,
                                                                                                                                                                                          In input,
                                                                                                                                                                                          Out output)
        Performs a horizontal 1D convolution across the image. The horizontal border is not processed.
        Parameters:
        input - The original image. Not modified.
        output - Where the resulting image is written to. Modified.
        kernel - The kernel that is being convolved. Not modified.
      • vertical

        public static <In extends boofcv.struct.image.ImageBase<In>,​Out extends boofcv.struct.image.ImageBase<Out>,​K extends boofcv.struct.convolve.Kernel1D> void vertical​(K kernel,
                                                                                                                                                                                        In input,
                                                                                                                                                                                        Out output)
        Performs a horizontal 1D convolution across the image. The horizontal border is not processed.
        Parameters:
        input - The original image. Not modified.
        output - Where the resulting image is written to. Modified.
        kernel - The kernel that is being convolved. Not modified.
      • convolve

        public static <In extends boofcv.struct.image.ImageBase<In>,​Out extends boofcv.struct.image.ImageBase<Out>,​K extends boofcv.struct.convolve.Kernel2D> void convolve​(K kernel,
                                                                                                                                                                                        In input,
                                                                                                                                                                                        Out output)
        Performs a 2D convolution across the image. The image's borders are not processed.
        Parameters:
        kernel - A square kernel that will be convolved across the source image
        input - The source image that is to be convolved
        output - The results of the convolution
      • horizontalNormalized

        public static <In extends boofcv.struct.image.ImageBase,​Out extends boofcv.struct.image.ImageBase,​K extends boofcv.struct.convolve.Kernel1D> void horizontalNormalized​(K kernel,
                                                                                                                                                                                           In input,
                                                                                                                                                                                           Out output)
        Performs a horizontal 1D convolution across the image while re-normalizing the kernel depending on its overlap with the image.
        Parameters:
        input - The original image. Not modified.
        output - Where the resulting image is written to. Modified.
        kernel - The kernel that is being convolved. Not modified.
      • verticalNormalized

        public static <T extends boofcv.struct.image.ImageBase<T>,​K extends boofcv.struct.convolve.Kernel1D> void verticalNormalized​(K kernel,
                                                                                                                                           T input,
                                                                                                                                           T output)
        Performs a vertical 1D convolution across the image while re-normalizing the kernel depending on its overlap with the image.
        Parameters:
        input - The original image. Not modified.
        output - Where the resulting image is written to. Modified.
        kernel - The kernel that is being convolved. Not modified.
      • convolveNormalized

        public static <T extends boofcv.struct.image.ImageBase<T>,​K extends boofcv.struct.convolve.Kernel2D> void convolveNormalized​(K kernel,
                                                                                                                                           T input,
                                                                                                                                           T output)
        Performs a 2D convolution across the image while re-normalizing the kernel depending on its overlap with the image.
        Parameters:
        input - The original image. Not modified.
        output - Where the resulting image is written to. Modified.
        kernel - The kernel that is being convolved. Not modified.
      • convolveNormalized

        public static <T extends boofcv.struct.image.ImageBase<T>,​K extends boofcv.struct.convolve.Kernel2D> void convolveNormalized​(K kernel,
                                                                                                                                           T input,
                                                                                                                                           T output,
                                                                                                                                           boofcv.struct.border.ImageBorder border)
        Performs a 2D convolution across the image while re-normalizing the kernel depending on its overlap with the image.
        Parameters:
        input - The original image. Not modified.
        output - Where the resulting image is written to. Modified.
        kernel - The kernel that is being convolved. Not modified.