Class ConvolveImageNoBorder
- java.lang.Object
-
- boofcv.alg.filter.convolve.ConvolveImageNoBorder
-
public class ConvolveImageNoBorder extends java.lang.ObjectProvides functions for convolving 1D and 2D kernels across an image, excluding the image border. 1D kernels can either be convolved along each row or column in the image. No checks are done for overflow or underflow.
When convolving with division the convolution is computed as usual, but then the result is divided by the divisor. This is typically done when performing convolution inside of integer images to normalize it by the sum of all the elements in the convolution kernel.
Image Edges: There is no general purpose way for handling convolutions along the image edges. Therefor unless the whole kernel can be convolved image borders are skipped. In special cases where there is a clear way to handle image edges specialized functions are provided.
-
-
Constructor Summary
Constructors Constructor and Description ConvolveImageNoBorder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidconvolve(Kernel2D_F32 kernel, GrayF32 input, GrayF32 output)Performs a 2D convolution across the image.static voidconvolve(Kernel2D_I32 kernel, GrayS16 input, GrayI16 output)Performs a 2D convolution across the image.static voidconvolve(Kernel2D_I32 kernel, GrayS16 input, GrayI16 output, int divisor)Performs a 2D convolution across the image.static voidconvolve(Kernel2D_I32 kernel, GrayU8 input, GrayI16 output)Performs a 2D convolution across the image.static voidconvolve(Kernel2D_I32 kernel, GrayU8 input, GrayI8 output, int divisor)Performs a 2D convolution with division across the image.static voidconvolve(Kernel2D_I32 kernel, GrayU8 input, GrayS32 output)Performs a 2D convolution across the image.static voidhorizontal(Kernel1D_F32 kernel, GrayF32 input, GrayF32 output)Performs a horizontal 1D convolution across the image.static voidhorizontal(Kernel1D_I32 kernel, GrayS16 input, GrayI16 output)Performs a horizontal 1D convolution across the image.static voidhorizontal(Kernel1D_I32 kernel, GrayS16 input, GrayI16 output, int divisor)Performs a horizontal 1D convolution across the image.static voidhorizontal(Kernel1D_I32 kernel, GrayS32 input, GrayS32 output, int divisor)Performs a horizontal 1D convolution across the image.static voidhorizontal(Kernel1D_I32 kernel, GrayU8 input, GrayI16 output)Performs a horizontal 1D convolution across the image.static voidhorizontal(Kernel1D_I32 kernel, GrayU8 input, GrayI8 output, int divisor)Performs a horizontal 1D convolution across the image.static voidhorizontal(Kernel1D_I32 kernel, GrayU8 input, GrayS32 output)Performs a horizontal 1D convolution across the image.static voidvertical(Kernel1D_F32 kernel, GrayF32 input, GrayF32 output)Performs a vertical 1D convolution across the image in the vertical direction.static voidvertical(Kernel1D_I32 kernel, GrayS16 input, GrayI16 output)Performs a vertical 1D convolution across the image in the vertical direction.static voidvertical(Kernel1D_I32 kernel, GrayS16 input, GrayI16 output, int divisor)Performs a vertical 1D convolution across the image in the vertical direction.static voidvertical(Kernel1D_I32 kernel, GrayS32 input, GrayI16 output, int divisor)Performs a vertical 1D convolution across the image in the vertical direction.static voidvertical(Kernel1D_I32 kernel, GrayS32 input, GrayS32 output, int divisor)Performs a vertical 1D convolution across the image in the vertical direction.static voidvertical(Kernel1D_I32 kernel, GrayU16 input, GrayI8 output, int divisor)Performs a vertical 1D convolution across the image in the vertical direction.static voidvertical(Kernel1D_I32 kernel, GrayU8 input, GrayI16 output)Performs a vertical 1D convolution across the image in the vertical direction.static voidvertical(Kernel1D_I32 kernel, GrayU8 input, GrayI8 output, int divisor)Performs a vertical 1D convolution across the image in the vertical direction.static voidvertical(Kernel1D_I32 kernel, GrayU8 input, GrayS32 output)Performs a vertical 1D convolution across the image in the vertical direction.
-
-
-
Method Detail
-
horizontal
public static void horizontal(Kernel1D_F32 kernel, GrayF32 input, GrayF32 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.
-
horizontal
public static void horizontal(Kernel1D_I32 kernel, GrayU8 input, GrayI8 output, int divisor)
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.
-
horizontal
public static void horizontal(Kernel1D_I32 kernel, GrayU8 input, GrayI16 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.
-
horizontal
public static void horizontal(Kernel1D_I32 kernel, GrayU8 input, GrayS32 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.
-
horizontal
public static void horizontal(Kernel1D_I32 kernel, GrayS16 input, GrayI16 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.
-
horizontal
public static void horizontal(Kernel1D_I32 kernel, GrayS16 input, GrayI16 output, int divisor)
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.divisor- The value that the convolved image is divided by.
-
horizontal
public static void horizontal(Kernel1D_I32 kernel, GrayS32 input, GrayS32 output, int divisor)
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.divisor- The value that the convolved image is divided by.
-
vertical
public static void vertical(Kernel1D_F32 kernel, GrayF32 input, GrayF32 output)
Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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 void vertical(Kernel1D_I32 kernel, GrayU8 input, GrayI8 output, int divisor)
Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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 void vertical(Kernel1D_I32 kernel, GrayU16 input, GrayI8 output, int divisor)
Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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 void vertical(Kernel1D_I32 kernel, GrayU8 input, GrayI16 output)
Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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 void vertical(Kernel1D_I32 kernel, GrayU8 input, GrayS32 output)
Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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 void vertical(Kernel1D_I32 kernel, GrayS16 input, GrayI16 output)
Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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 void vertical(Kernel1D_I32 kernel, GrayS16 input, GrayI16 output, int divisor)
Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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.divisor- The value that the convolved image is divided by.
-
vertical
public static void vertical(Kernel1D_I32 kernel, GrayS32 input, GrayI16 output, int divisor)
Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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.divisor- The value that the convolved image is divided by.
-
vertical
public static void vertical(Kernel1D_I32 kernel, GrayS32 input, GrayS32 output, int divisor)
Performs a vertical 1D convolution across the image in the vertical direction. The vertical 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.divisor- The value that the convolved image is divided by.
-
convolve
public static void convolve(Kernel2D_F32 kernel, GrayF32 input, GrayF32 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
-
convolve
public static void convolve(Kernel2D_I32 kernel, GrayU8 input, GrayI8 output, int divisor)
Performs a 2D convolution with division 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 convolutiondivisor- The value that the convolved image is divided by.
-
convolve
public static void convolve(Kernel2D_I32 kernel, GrayU8 input, GrayI16 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
-
convolve
public static void convolve(Kernel2D_I32 kernel, GrayU8 input, GrayS32 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
-
convolve
public static void convolve(Kernel2D_I32 kernel, GrayS16 input, GrayI16 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
-
convolve
public static void convolve(Kernel2D_I32 kernel, GrayS16 input, GrayI16 output, int divisor)
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 convolutiondivisor- The value that the convolved image is divided by.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG