Package boofcv.alg.filter.convolve
Class ConvolveImageNormalizedSparse
- java.lang.Object
-
- boofcv.alg.filter.convolve.ConvolveImageNormalizedSparse
-
public class ConvolveImageNormalizedSparse 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 Description ConvolveImageNormalizedSparse()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static floatconvolve(boofcv.struct.convolve.Kernel1D_F32 horizontal, boofcv.struct.convolve.Kernel1D_F32 vertical, boofcv.struct.image.GrayF32 input, int c_x, int c_y, float[] storage)Convolves around the specified point in the horizontal and vertical direction.static intconvolve(boofcv.struct.convolve.Kernel1D_S32 horizontal, boofcv.struct.convolve.Kernel1D_S32 vertical, boofcv.struct.image.GrayS16 input, int c_x, int c_y, int[] storage)Convolves around the specified point in the horizontal and vertical direction.static intconvolve(boofcv.struct.convolve.Kernel1D_S32 horizontal, boofcv.struct.convolve.Kernel1D_S32 vertical, boofcv.struct.image.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(boofcv.struct.convolve.Kernel1D_F32 horizontal, boofcv.struct.convolve.Kernel1D_F32 vertical, boofcv.struct.image.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(boofcv.struct.convolve.Kernel1D_S32 horizontal, boofcv.struct.convolve.Kernel1D_S32 vertical, boofcv.struct.image.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(boofcv.struct.convolve.Kernel1D_S32 horizontal, boofcv.struct.convolve.Kernel1D_S32 vertical, boofcv.struct.image.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.
-
-