boofcv.alg.filter.convolve
Class GConvolveImageOps
- java.lang.Object
-
- boofcv.alg.filter.convolve.GConvolveImageOps
-
public class GConvolveImageOps extends java.lang.ObjectImage type agnostic convolution functions
-
-
Constructor Summary
Constructors Constructor and Description GConvolveImageOps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static <In extends ImageGray,Out extends ImageGray,K extends Kernel2D>
voidconvolve(K kernel, In input, Out output)Performs a 2D convolution across the image.static <In extends ImageGray,Out extends ImageGray,K extends Kernel2D,B extends ImageBorder<In>>
voidconvolve(K kernel, In input, Out output, B border)Performs a 2D convolution across the image.static <T extends ImageGray,K extends Kernel2D>
voidconvolveNormalized(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 <In extends ImageGray,Out extends ImageGray,K extends Kernel1D>
voidhorizontal(K kernel, In input, In output)Performs a horizontal 1D convolution across the image.static <In extends ImageGray,Out extends ImageGray,K extends Kernel1D,B extends ImageBorder<In>>
voidhorizontal(K kernel, In input, Out output, B border)Performs a horizontal 1D convolution across the image.static <In extends ImageGray,Out extends ImageGray,K extends Kernel1D>
voidhorizontalNormalized(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 ImageGray,Out extends ImageGray,K extends Kernel1D>
voidvertical(K kernel, In input, Out output)Performs a horizontal 1D convolution across the image.static <In extends ImageGray,Out extends ImageGray,K extends Kernel1D,B extends ImageBorder<In>>
voidvertical(K kernel, In input, Out output, B border)Performs a vertical 1D convolution across the image.static <T extends ImageGray,K extends Kernel1D>
voidverticalNormalized(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.
-
-
-
Method Detail
-
horizontal
public static <In extends ImageGray,Out extends ImageGray,K extends Kernel1D,B extends 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 ImageGray,Out extends ImageGray,K extends Kernel1D,B extends 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 ImageGray,Out extends ImageGray,K extends Kernel2D,B extends 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 ImageGray,Out extends ImageGray,K extends Kernel1D> void horizontal(K kernel, In input, In 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 ImageGray,Out extends ImageGray,K extends 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 ImageGray,Out extends ImageGray,K extends 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 imageinput- The source image that is to be convolvedoutput- The results of the convolution
-
horizontalNormalized
public static <In extends ImageGray,Out extends ImageGray,K extends 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 ImageGray,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 ImageGray,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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG