Package boofcv.alg.filter.convolve
Class GConvolveImageOps
java.lang.Object
boofcv.alg.filter.convolve.GConvolveImageOps
Image type agnostic convolution functions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvolve
(K kernel, In input, Out output) Performs a 2D convolution across the image.static <In extends ImageBase<In>,
Out extends ImageBase<Out>, K extends Kernel2D, B extends ImageBorder<In>>
voidconvolve
(K kernel, In input, Out output, B border) Performs a 2D convolution across the image.static <In extends ImageBase<In>,
Out extends ImageBase<Out>, K extends Kernel2D, B extends ImageBorder<In>>
voidconvolve
(K kernel, In input, Out output, BorderType borderType) Performs a 2D convolution across the image.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.convolveNormalized
(K kernel, T input, T output, BorderType borderType) Performs a 2D convolution across the image while re-normalizing the kernel depending on its overlap with the image.convolveNormalized
(K kernel, T input, T output, ImageBorder border) Performs a 2D convolution across the image while re-normalizing the kernel depending on its overlap with the image.horizontal
(K kernel, In input, Out output) Performs a horizontal 1D convolution across the image.static <In extends ImageBase<In>,
Out extends ImageBase<Out>, K extends Kernel1D, B extends ImageBorder<In>>
voidhorizontal
(K kernel, In input, Out output, B border) Performs a horizontal 1D convolution across the image.horizontal
(K kernel, In input, Out output, BorderType borderType) Performs a horizontal 1D convolution across the image.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.vertical
(K kernel, In input, Out output) Performs a horizontal 1D convolution across the image.static <In extends ImageBase<In>,
Out extends ImageBase<Out>, K extends Kernel1D, B extends ImageBorder<In>>
voidvertical
(K kernel, In input, Out output, B border) Performs a vertical 1D convolution across the image.vertical
(K kernel, In input, Out output, BorderType borderType) Performs a vertical 1D convolution across the image.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.
-
Constructor Details
-
GConvolveImageOps
public GConvolveImageOps()
-
-
Method Details
-
horizontal
public static <In extends ImageBase<In>,Out extends ImageBase<Out>, void horizontalK extends Kernel1D> (K kernel, In input, Out output, BorderType borderType) 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.borderType
- How the image borders are handled.
-
horizontal
public static <In extends ImageBase<In>,Out extends ImageBase<Out>, void horizontalK extends Kernel1D, B extends ImageBorder<In>> (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 ImageBase<In>,Out extends ImageBase<Out>, void verticalK extends Kernel1D> (K kernel, In input, Out output, BorderType borderType) 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.borderType
- How the image borders are handled.
-
vertical
public static <In extends ImageBase<In>,Out extends ImageBase<Out>, void verticalK extends Kernel1D, B extends ImageBorder<In>> (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 ImageBase<In>,Out extends ImageBase<Out>, void convolveK extends Kernel2D, B extends ImageBorder<In>> (K kernel, In input, Out output, BorderType borderType) 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.borderType
- How the image borders are handled.
-
convolve
public static <In extends ImageBase<In>,Out extends ImageBase<Out>, void convolveK extends Kernel2D, B extends ImageBorder<In>> (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 ImageBase<In>,Out extends ImageBase<Out>, void horizontalK extends Kernel1D> (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 ImageBase<In>,Out extends ImageBase<Out>, void verticalK extends Kernel1D> (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 ImageBase<In>,Out extends ImageBase<Out>, void convolveK extends Kernel2D> (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 imageinput
- The source image that is to be convolvedoutput
- The results of the convolution
-
horizontalNormalized
public static <In extends ImageBase,Out extends ImageBase, void horizontalNormalizedK extends Kernel1D> (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 ImageBase<T>,K extends 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 ImageBase<T>,K extends 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 ImageBase<T>,K extends Kernel2D> void convolveNormalized(K kernel, T input, T output, BorderType borderType) 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 ImageBase<T>,K extends Kernel2D> void convolveNormalized(K kernel, T input, T output, 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.
-