public class ConvolveImageNoBorder extends 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,
ImageFloat32 input,
ImageFloat32 output)
Performs a 2D convolution across the image.
|
static void |
convolve(Kernel2D_I32 kernel,
ImageSInt16 input,
ImageInt16 output)
Performs a 2D convolution across the image.
|
static void |
convolve(Kernel2D_I32 kernel,
ImageSInt16 input,
ImageInt16 output,
int divisor)
Performs a 2D convolution across the image.
|
static void |
convolve(Kernel2D_I32 kernel,
ImageUInt8 input,
ImageInt16 output)
Performs a 2D convolution across the image.
|
static void |
convolve(Kernel2D_I32 kernel,
ImageUInt8 input,
ImageInt8 output,
int divisor)
Performs a 2D convolution with division across the image.
|
static void |
convolve(Kernel2D_I32 kernel,
ImageUInt8 input,
ImageSInt32 output)
Performs a 2D convolution across the image.
|
static void |
horizontal(Kernel1D_F32 kernel,
ImageFloat32 input,
ImageFloat32 output,
boolean includeVerticalBorder)
Performs a horizontal 1D convolution across the image.
|
static void |
horizontal(Kernel1D_I32 kernel,
ImageSInt16 input,
ImageInt16 output,
boolean includeVerticalBorder)
Performs a horizontal 1D convolution across the image.
|
static void |
horizontal(Kernel1D_I32 kernel,
ImageSInt16 input,
ImageInt16 output,
int divisor,
boolean includeVerticalBorder)
Performs a horizontal 1D convolution across the image.
|
static void |
horizontal(Kernel1D_I32 kernel,
ImageSInt32 input,
ImageSInt32 output,
int divisor,
boolean includeVerticalBorder)
Performs a horizontal 1D convolution across the image.
|
static void |
horizontal(Kernel1D_I32 kernel,
ImageUInt8 input,
ImageInt16 output,
boolean includeVerticalBorder)
Performs a horizontal 1D convolution across the image.
|
static void |
horizontal(Kernel1D_I32 kernel,
ImageUInt8 input,
ImageInt8 output,
int divisor,
boolean includeVerticalBorder)
Performs a horizontal 1D convolution across the image with division.
|
static void |
horizontal(Kernel1D_I32 kernel,
ImageUInt8 input,
ImageSInt32 output,
boolean includeVerticalBorder)
Performs a horizontal 1D convolution across the image.
|
static void |
vertical(Kernel1D_F32 kernel,
ImageFloat32 input,
ImageFloat32 output,
boolean includeHorizontalBorder)
Performs a vertical 1D convolution across the image.
|
static void |
vertical(Kernel1D_I32 kernel,
ImageSInt16 input,
ImageInt16 output,
boolean includeHorizontalBorder)
Performs a vertical 1D convolution across the image.
|
static void |
vertical(Kernel1D_I32 kernel,
ImageSInt16 input,
ImageInt16 output,
int divisor,
boolean includeHorizontalBorder)
Performs a vertical 1D convolution across the image.
|
static void |
vertical(Kernel1D_I32 kernel,
ImageSInt32 input,
ImageSInt32 output,
int divisor,
boolean includeHorizontalBorder)
Performs a vertical 1D convolution across the image.
|
static void |
vertical(Kernel1D_I32 kernel,
ImageUInt8 input,
ImageInt16 output,
boolean includeHorizontalBorder)
Performs a vertical 1D convolution across the image.
|
static void |
vertical(Kernel1D_I32 kernel,
ImageUInt8 input,
ImageInt8 output,
int divisor,
boolean includeHorizontalBorder)
Performs a vertical 1D convolution with division across the image.
|
static void |
vertical(Kernel1D_I32 kernel,
ImageUInt8 input,
ImageSInt32 output,
boolean includeHorizontalBorder)
Performs a vertical 1D convolution across the image.
|
public static void horizontal(Kernel1D_F32 kernel, ImageFloat32 input, ImageFloat32 output, boolean includeVerticalBorder)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.includeVerticalBorder - Should the vertical border of the image be processed?public static void horizontal(Kernel1D_I32 kernel, ImageUInt8 input, ImageInt8 output, int divisor, boolean includeVerticalBorder)
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.includeVerticalBorder - Should the vertical border of the image be processed?public static void horizontal(Kernel1D_I32 kernel, ImageUInt8 input, ImageInt16 output, boolean includeVerticalBorder)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.includeVerticalBorder - Should the vertical border of the image be processed?public static void horizontal(Kernel1D_I32 kernel, ImageUInt8 input, ImageSInt32 output, boolean includeVerticalBorder)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.includeVerticalBorder - Should the vertical border of the image be processed?public static void horizontal(Kernel1D_I32 kernel, ImageSInt16 input, ImageInt16 output, boolean includeVerticalBorder)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.includeVerticalBorder - Should the vertical border of the image be processed?public static void horizontal(Kernel1D_I32 kernel, ImageSInt16 input, ImageInt16 output, int divisor, boolean includeVerticalBorder)
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.includeVerticalBorder - Should the vertical border of the image be processed?public static void horizontal(Kernel1D_I32 kernel, ImageSInt32 input, ImageSInt32 output, int divisor, boolean includeVerticalBorder)
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.includeVerticalBorder - Should the vertical border of the image be processed?public static void vertical(Kernel1D_F32 kernel, ImageFloat32 input, ImageFloat32 output, boolean includeHorizontalBorder)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.includeHorizontalBorder - Should the horizontal border of the image be processed?public static void vertical(Kernel1D_I32 kernel, ImageUInt8 input, ImageInt8 output, int divisor, boolean includeHorizontalBorder)
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.includeHorizontalBorder - Should the horizontal border of the image be processed?public static void vertical(Kernel1D_I32 kernel, ImageUInt8 input, ImageInt16 output, boolean includeHorizontalBorder)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.includeHorizontalBorder - Should the horizontal border of the image be processed?public static void vertical(Kernel1D_I32 kernel, ImageUInt8 input, ImageSInt32 output, boolean includeHorizontalBorder)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.includeHorizontalBorder - Should the horizontal border of the image be processed?public static void vertical(Kernel1D_I32 kernel, ImageSInt16 input, ImageInt16 output, boolean includeHorizontalBorder)
input - The original image. Not modified.output - Where the resulting image is written to. Modified.kernel - The kernel that is being convolved. Not modified.includeHorizontalBorder - Should the horizontal border of the image be processed?public static void vertical(Kernel1D_I32 kernel, ImageSInt16 input, ImageInt16 output, int divisor, boolean includeHorizontalBorder)
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.includeHorizontalBorder - Should the horizontal border of the image be processed?public static void vertical(Kernel1D_I32 kernel, ImageSInt32 input, ImageSInt32 output, int divisor, boolean includeHorizontalBorder)
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.includeHorizontalBorder - Should the horizontal border of the image be processed?public static void convolve(Kernel2D_F32 kernel, ImageFloat32 input, ImageFloat32 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, ImageUInt8 input, ImageInt8 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, ImageUInt8 input, ImageInt16 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, ImageUInt8 input, ImageSInt32 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, ImageSInt16 input, ImageInt16 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, ImageSInt16 input, ImageInt16 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.Copyright © 2013. All Rights Reserved.