public class ConvolveImageNoBorder
extends java.lang.Object
Provides 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 and Description |
|---|
ConvolveImageNoBorder() |
| Modifier and Type | Method and Description |
|---|---|
static void |
convolve(Kernel2D_F32 kernel,
GrayF32 input,
GrayF32 output)
Performs a 2D convolution across the image.
|
static void |
convolve(Kernel2D_F64 kernel,
GrayF64 input,
GrayF64 output)
Performs a 2D convolution across the image.
|
static void |
convolve(Kernel2D_I32 kernel,
GrayS16 input,
GrayI16 output)
Performs a 2D convolution across the image.
|
static void |
convolve(Kernel2D_I32 kernel,
GrayS16 input,
GrayI16 output,
int divisor)
Performs a 2D convolution across the image.
|
static void |
convolve(Kernel2D_I32 kernel,
GrayU8 input,
GrayI16 output)
Performs a 2D convolution across the image.
|
static void |
convolve(Kernel2D_I32 kernel,
GrayU8 input,
GrayI8 output,
int divisor)
Performs a 2D convolution with division across the image.
|
static void |
convolve(Kernel2D_I32 kernel,
GrayU8 input,
GrayS32 output)
Performs a 2D convolution across the image.
|
static void |
horizontal(Kernel1D_F32 kernel,
GrayF32 input,
GrayF32 output)
Performs a horizontal 1D convolution across the image.
|
static void |
horizontal(Kernel1D_F64 kernel,
GrayF64 input,
GrayF64 output)
Performs a horizontal 1D convolution across the image.
|
static void |
horizontal(Kernel1D_I32 kernel,
GrayS16 input,
GrayI16 output)
Performs a horizontal 1D convolution across the image.
|
static void |
horizontal(Kernel1D_I32 kernel,
GrayS16 input,
GrayI16 output,
int divisor)
Performs a horizontal 1D convolution across the image.
|
static void |
horizontal(Kernel1D_I32 kernel,
GrayS32 input,
GrayS32 output,
int divisor)
Performs a horizontal 1D convolution across the image.
|
static void |
horizontal(Kernel1D_I32 kernel,
GrayU8 input,
GrayI16 output)
Performs a horizontal 1D convolution across the image.
|
static void |
horizontal(Kernel1D_I32 kernel,
GrayU8 input,
GrayI8 output,
int divisor)
Performs a horizontal 1D convolution across the image.
|
static void |
horizontal(Kernel1D_I32 kernel,
GrayU8 input,
GrayS32 output)
Performs a horizontal 1D convolution across the image.
|
static void |
vertical(Kernel1D_F32 kernel,
GrayF32 input,
GrayF32 output)
Performs a vertical 1D convolution across the image in the vertical direction.
|
static void |
vertical(Kernel1D_F64 kernel,
GrayF64 input,
GrayF64 output)
Performs a vertical 1D convolution across the image in the vertical direction.
|
static void |
vertical(Kernel1D_I32 kernel,
GrayS16 input,
GrayI16 output)
Performs a vertical 1D convolution across the image in the vertical direction.
|
static void |
vertical(Kernel1D_I32 kernel,
GrayS16 input,
GrayI16 output,
int divisor)
Performs a vertical 1D convolution across the image in the vertical direction.
|
static void |
vertical(Kernel1D_I32 kernel,
GrayS32 input,
GrayI16 output,
int divisor)
Performs a vertical 1D convolution across the image in the vertical direction.
|
static void |
vertical(Kernel1D_I32 kernel,
GrayS32 input,
GrayS32 output,
int divisor)
Performs a vertical 1D convolution across the image in the vertical direction.
|
static void |
vertical(Kernel1D_I32 kernel,
GrayU16 input,
GrayI8 output,
int divisor)
Performs a vertical 1D convolution across the image in the vertical direction.
|
static void |
vertical(Kernel1D_I32 kernel,
GrayU8 input,
GrayI16 output)
Performs a vertical 1D convolution across the image in the vertical direction.
|
static void |
vertical(Kernel1D_I32 kernel,
GrayU8 input,
GrayI8 output,
int divisor)
Performs a vertical 1D convolution across the image in the vertical direction.
|
static void |
vertical(Kernel1D_I32 kernel,
GrayU8 input,
GrayS32 output)
Performs a vertical 1D convolution across the image in the vertical direction.
|
public static void horizontal(Kernel1D_F32 kernel, GrayF32 input, GrayF32 output)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.public static void horizontal(Kernel1D_F64 kernel, GrayF64 input, GrayF64 output)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.public static void horizontal(Kernel1D_I32 kernel, GrayU8 input, GrayI8 output, int divisor)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.public static void horizontal(Kernel1D_I32 kernel, GrayU8 input, GrayI16 output)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.public static void horizontal(Kernel1D_I32 kernel, GrayU8 input, GrayS32 output)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.public static void horizontal(Kernel1D_I32 kernel, GrayS16 input, GrayI16 output)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.public static void horizontal(Kernel1D_I32 kernel, GrayS16 input, GrayI16 output, int divisor)
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.public static void horizontal(Kernel1D_I32 kernel, GrayS32 input, GrayS32 output, int divisor)
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.public static void vertical(Kernel1D_F32 kernel, GrayF32 input, GrayF32 output)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.public static void vertical(Kernel1D_F64 kernel, GrayF64 input, GrayF64 output)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.public static void vertical(Kernel1D_I32 kernel, GrayU8 input, GrayI8 output, int divisor)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.public static void vertical(Kernel1D_I32 kernel, GrayU16 input, GrayI8 output, int divisor)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.public static void vertical(Kernel1D_I32 kernel, GrayU8 input, GrayI16 output)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.public static void vertical(Kernel1D_I32 kernel, GrayU8 input, GrayS32 output)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.public static void vertical(Kernel1D_I32 kernel, GrayS16 input, GrayI16 output)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.public static void vertical(Kernel1D_I32 kernel, GrayS16 input, GrayI16 output, int divisor)
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.public static void vertical(Kernel1D_I32 kernel, GrayS32 input, GrayI16 output, int divisor)
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.public static void vertical(Kernel1D_I32 kernel, GrayS32 input, GrayS32 output, int divisor)
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.public static void convolve(Kernel2D_F32 kernel, GrayF32 input, GrayF32 output)
kernel - A square kernel that will be convolved across the source imageinput - The source image that is to be convolvedoutput - The results of the convolutionpublic static void convolve(Kernel2D_F64 kernel, GrayF64 input, GrayF64 output)
kernel - A square kernel that will be convolved across the source imageinput - The source image that is to be convolvedoutput - The results of the convolutionpublic static void convolve(Kernel2D_I32 kernel, GrayU8 input, GrayI8 output, int divisor)
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.public static void convolve(Kernel2D_I32 kernel, GrayU8 input, GrayI16 output)
kernel - A square kernel that will be convolved across the source imageinput - The source image that is to be convolvedoutput - The results of the convolutionpublic static void convolve(Kernel2D_I32 kernel, GrayU8 input, GrayS32 output)
kernel - A square kernel that will be convolved across the source imageinput - The source image that is to be convolvedoutput - The results of the convolutionpublic static void convolve(Kernel2D_I32 kernel, GrayS16 input, GrayI16 output)
kernel - A square kernel that will be convolved across the source imageinput - The source image that is to be convolvedoutput - The results of the convolutionpublic static void convolve(Kernel2D_I32 kernel, GrayS16 input, GrayI16 output, int divisor)
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.