Class ConvolveImageBox

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

public class ConvolveImageBox
extends Object
Convolves a kernel which is composed entirely of 1's across an image. This special kernel can be highly optimized and has a computational complexity independent of the kernel size.
  • Constructor Details

    • ConvolveImageBox

      public ConvolveImageBox()
  • Method Details

    • horizontal

      public static void horizontal​(GrayF32 input, GrayF32 output, int radius)
      Performs a horizontal 1D convolution of a box kernel across the image
      Parameters:
      input - The original image. Not modified.
      output - Where the resulting image is written to. Modified.
      radius - Kernel size.
    • horizontal

      public static void horizontal​(GrayU8 input, GrayI16 output, int radius)
      Performs a horizontal 1D convolution of a box kernel across the image
      Parameters:
      input - The original image. Not modified.
      output - Where the resulting image is written to. Modified.
      radius - Kernel size.
    • horizontal

      public static void horizontal​(GrayU8 input, GrayS32 output, int radius)
      Performs a horizontal 1D convolution of a box kernel across the image
      Parameters:
      input - The original image. Not modified.
      output - Where the resulting image is written to. Modified.
      radius - Kernel size.
    • horizontal

      public static void horizontal​(GrayS16 input, GrayI16 output, int radius)
      Performs a horizontal 1D convolution of a box kernel across the image
      Parameters:
      input - The original image. Not modified.
      output - Where the resulting image is written to. Modified.
      radius - Kernel size.
    • vertical

      public static void vertical​(GrayF32 input, GrayF32 output, int radius, @Nullable @Nullable GrowArray<DogArray_F32> work)
      Performs a vertical 1D convolution of a box kernel across the image
      Parameters:
      input - The original image. Not modified.
      output - Where the resulting image is written to. Modified.
      radius - Kernel size.
    • vertical

      public static void vertical​(GrayU8 input, GrayI16 output, int radius, @Nullable @Nullable GrowArray<DogArray_I32> work)
      Performs a vertical 1D convolution of a box kernel across the image
      Parameters:
      input - The original image. Not modified.
      output - Where the resulting image is written to. Modified.
      radius - Kernel size.
    • vertical

      public static void vertical​(GrayU8 input, GrayS32 output, int radius, @Nullable @Nullable GrowArray<DogArray_I32> work)
      Performs a vertical 1D convolution of a box kernel across the image
      Parameters:
      input - The original image. Not modified.
      output - Where the resulting image is written to. Modified.
      radius - Kernel size.
    • vertical

      public static void vertical​(GrayS16 input, GrayI16 output, int radius, @Nullable @Nullable GrowArray<DogArray_I32> work)
      Performs a vertical 1D convolution of a box kernel across the image
      Parameters:
      input - The original image. Not modified.
      output - Where the resulting image is written to. Modified.
      radius - Kernel size.