Package boofcv.alg.filter.convolve
Class ConvolveImageNormalizedSparse
java.lang.Object
boofcv.alg.filter.convolve.ConvolveImageNormalizedSparse
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 renormalized. Only to be used with kernels
that can be renormalized

Constructor Summary

Method Summary
Modifier and TypeMethodDescriptionstatic 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.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.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.

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 renormalized. 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 xcoordinate of the point being convolved.c_y
 The ycoordinate 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 renormalized. 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 xcoordinate of the point being convolved.c_y
 The ycoordinate 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 renormalized. 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 xcoordinate of the point being convolved.c_y
 The ycoordinate of the point being convolved.storage
 Temporary storage. Needs to be the same size as the kernels being convolved. Returns:
 Result of the convolution.
