boofcv.alg.filter.convolve
Class ConvolveNormalizedSparse
- java.lang.Object
-
- boofcv.alg.filter.convolve.ConvolveNormalizedSparse
-
public class ConvolveNormalizedSparse extends java.lang.ObjectPerforms 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 Summary
Constructors Constructor and Description ConvolveNormalizedSparse()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static floatconvolve(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.static intconvolve(Kernel1D_I32 horizontal, Kernel1D_I32 vertical, GrayS16 input, int c_x, int c_y, int[] storage)Convolves around the specified point in the horizontal and vertical direction.static intconvolve(Kernel1D_I32 horizontal, Kernel1D_I32 vertical, GrayU8 input, int c_x, int c_y, int[] storage)Convolves around the specified point in the horizontal and vertical direction.
-
-
-
Method Detail
-
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_I32 horizontal, Kernel1D_I32 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_I32 horizontal, Kernel1D_I32 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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG