Class ConvolveImageNormalizedSparse

java.lang.Object
boofcv.alg.filter.convolve.ConvolveImageNormalizedSparse

public class ConvolveImageNormalizedSparse extends Object
Performs a convolution around a single pixel only using two 1D kernels in the horizontal and vertical direction. Borders are checked and if on an image border the kernel is truncated and re-normalized. Only to be used with kernels that can be re-normalized
  • Constructor Details

    • ConvolveImageNormalizedSparse

      public ConvolveImageNormalizedSparse()
  • Method Details

    • convolve

      public static float convolve(Kernel1D_F32 horizontal, Kernel1D_F32 vertical, GrayF32 input, int c_x, int c_y, float[] storage)
      Convolves around the specified point in the horizontal and vertical direction. When at the border of the image the kernel is re-normalized.
      Parameters:
      horizontal - Kernel convolved across the point in the horizontal direction.
      vertical - Kernel convolved across the point in the vertical direction.
      input - Image being convolved.
      c_x - The x-coordinate of the point being convolved.
      c_y - The y-coordinate of the point being convolved.
      storage - Temporary storage. Needs to be the same size as the kernels being convolved.
      Returns:
      Result of the convolution.
    • convolve

      public static int convolve(Kernel1D_S32 horizontal, Kernel1D_S32 vertical, GrayU8 input, int c_x, int c_y, int[] storage)
      Convolves around the specified point in the horizontal and vertical direction. When at the border of the image the kernel is re-normalized.
      Parameters:
      horizontal - Kernel convolved across the point in the horizontal direction.
      vertical - Kernel convolved across the point in the vertical direction.
      input - Image being convolved.
      c_x - The x-coordinate of the point being convolved.
      c_y - The y-coordinate of the point being convolved.
      storage - Temporary storage. Needs to be the same size as the kernels being convolved.
      Returns:
      Result of the convolution.
    • convolve

      public static int convolve(Kernel1D_S32 horizontal, Kernel1D_S32 vertical, GrayS16 input, int c_x, int c_y, int[] storage)
      Convolves around the specified point in the horizontal and vertical direction. When at the border of the image the kernel is re-normalized.
      Parameters:
      horizontal - Kernel convolved across the point in the horizontal direction.
      vertical - Kernel convolved across the point in the vertical direction.
      input - Image being convolved.
      c_x - The x-coordinate of the point being convolved.
      c_y - The y-coordinate of the point being convolved.
      storage - Temporary storage. Needs to be the same size as the kernels being convolved.
      Returns:
      Result of the convolution.