Documentation of 'boofcv.alg.filter.convolve.ConvolveImageNoBorder' Java class
ConvolveImageNoBorder
boofcv.alg.filter.convolve

Class ConvolveImageNoBorder



  • public class ConvolveImageNoBorder
    extends java.lang.Object

    Provides functions for convolving 1D and 2D kernels across an image, excluding the image border. 1D kernels can either be convolved along each row or column in the image. No checks are done for overflow or underflow.

    When convolving with division the convolution is computed as usual, but then the result is divided by the divisor. This is typically done when performing convolution inside of integer images to normalize it by the sum of all the elements in the convolution kernel.

    Image Edges: There is no general purpose way for handling convolutions along the image edges. Therefor unless the whole kernel can be convolved image borders are skipped. In special cases where there is a clear way to handle image edges specialized functions are provided.

    • Constructor Detail

      • ConvolveImageNoBorder

        public ConvolveImageNoBorder()
    • Method Detail

      • horizontal

        public static void horizontal(Kernel1D_F32 kernel,
                                      GrayF32 input,
                                      GrayF32 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.
      • horizontal

        public static void horizontal(Kernel1D_I32 kernel,
                                      GrayU8 input,
                                      GrayI8 output,
                                      int divisor)
        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.
      • horizontal

        public static void horizontal(Kernel1D_I32 kernel,
                                      GrayU8 input,
                                      GrayI16 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.
      • horizontal

        public static void horizontal(Kernel1D_I32 kernel,
                                      GrayU8 input,
                                      GrayS32 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.
      • horizontal

        public static void horizontal(Kernel1D_I32 kernel,
                                      GrayS16 input,
                                      GrayI16 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.
      • horizontal

        public static void horizontal(Kernel1D_I32 kernel,
                                      GrayS16 input,
                                      GrayI16 output,
                                      int divisor)
        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.
        divisor - The value that the convolved image is divided by.
      • horizontal

        public static void horizontal(Kernel1D_I32 kernel,
                                      GrayS32 input,
                                      GrayS32 output,
                                      int divisor)
        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.
        divisor - The value that the convolved image is divided by.
      • vertical

        public static void vertical(Kernel1D_F32 kernel,
                                    GrayF32 input,
                                    GrayF32 output)
        Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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 void vertical(Kernel1D_I32 kernel,
                                    GrayU8 input,
                                    GrayI8 output,
                                    int divisor)
        Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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 void vertical(Kernel1D_I32 kernel,
                                    GrayU16 input,
                                    GrayI8 output,
                                    int divisor)
        Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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 void vertical(Kernel1D_I32 kernel,
                                    GrayU8 input,
                                    GrayI16 output)
        Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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 void vertical(Kernel1D_I32 kernel,
                                    GrayU8 input,
                                    GrayS32 output)
        Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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 void vertical(Kernel1D_I32 kernel,
                                    GrayS16 input,
                                    GrayI16 output)
        Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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 void vertical(Kernel1D_I32 kernel,
                                    GrayS16 input,
                                    GrayI16 output,
                                    int divisor)
        Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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.
        divisor - The value that the convolved image is divided by.
      • vertical

        public static void vertical(Kernel1D_I32 kernel,
                                    GrayS32 input,
                                    GrayI16 output,
                                    int divisor)
        Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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.
        divisor - The value that the convolved image is divided by.
      • vertical

        public static void vertical(Kernel1D_I32 kernel,
                                    GrayS32 input,
                                    GrayS32 output,
                                    int divisor)
        Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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.
        divisor - The value that the convolved image is divided by.
      • convolve

        public static void convolve(Kernel2D_F32 kernel,
                                    GrayF32 input,
                                    GrayF32 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
      • convolve

        public static void convolve(Kernel2D_I32 kernel,
                                    GrayU8 input,
                                    GrayI8 output,
                                    int divisor)
        Performs a 2D convolution with division 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
        divisor - The value that the convolved image is divided by.
      • convolve

        public static void convolve(Kernel2D_I32 kernel,
                                    GrayU8 input,
                                    GrayI16 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
      • convolve

        public static void convolve(Kernel2D_I32 kernel,
                                    GrayU8 input,
                                    GrayS32 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
      • convolve

        public static void convolve(Kernel2D_I32 kernel,
                                    GrayS16 input,
                                    GrayI16 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
      • convolve

        public static void convolve(Kernel2D_I32 kernel,
                                    GrayS16 input,
                                    GrayI16 output,
                                    int divisor)
        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
        divisor - The value that the convolved image is divided by.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.