ConvolutionKernel

References
public sealed class ConvolutionKernel
Represents a custom convolution kernel.

Properties

Height

#
Gets the full height of the kernel.
public int Height { get; }

Inverse

#
Gets the inverse of all cells in the kernel.
public float Inverse { get; }

RadiusX

#
Gets the radius in the X direction. This is identical to the (Width - 1) / 2.
public int RadiusX { get; }

RadiusY

#
Gets the radius in the Y direction. This is identical to the (Height - 1) / 2.
public int RadiusY { get; }

Total

#
Gets the total weight of all cells in the kernel.
public float Total { get; }

Width

#
Gets the full width of the kernel.
public int Width { get; }

Indexers

this[]

#
Gets the weight of the specified cell.
public float this[
x,
X index, must be in the range [0, Width).
y
Y index, must be in the range [0, Height).
] { get; }

Methods

Create

#
Create a convolution kernel from a nested array.
public static ConvolutionKernel Create(
float[][]
kernel
Array containing an odd number of nested array, each containing an odd number of values.
)
Matrix.

Create

#
Create a convolution kernel from a collection of values.
public static ConvolutionKernel Create(
width,
Width of kernel (must be a positive, odd number).
height,
Height of kernel (must be a positive, odd number).
params float[]
values
Collection of cell values, starting from upper left, row by row.
)
Convolution kernel.

CreateBlockBlur

#
Create a block blur kernel.
public static ConvolutionKernel CreateBlockBlur(
radiusX,
X radius.
radiusY
Y radius.
)
Blur kernel.

CreateConeBlur

#
Create a conical blur kernel.
public static ConvolutionKernel CreateConeBlur(
radius
Radius.
)
Blur kernel.

CreateDiscBlur

#
Create a circular blur kernel.
public static ConvolutionKernel CreateDiscBlur(
radius
Radius.
)
Blur kernel.

CreateEdgeDetectOrthogonal

#
Creates a standard 3x3 edge detection kernel for horizontal and vertical edges.
public static ConvolutionKernel CreateEdgeDetectOrthogonal()
Convolution kernel.

CreateEdgeDetectRadial

#
Creates a standard 3x3 edge detection kernel for all edges.
public static ConvolutionKernel CreateEdgeDetectRadial()
Convolution kernel.

CreateEmboss

#
Creates a standard 3x3 embossing kernel.
public static ConvolutionKernel CreateEmboss()
Convolution kernel.

CreateGaussianBlur

#
Create a standard 3x3 gaussian blur kernel.
public static ConvolutionKernel CreateGaussianBlur()
Blur kernel.

CreateIdentity

#
Create the 3x3 identity kernel.
public static ConvolutionKernel CreateIdentity()

CreateLaplacian

#
Create a standard 3x3 Laplacian kernel.
public static ConvolutionKernel CreateLaplacian()
Convolution kernel.

CreateSharpen

#
Creates a standard 3x3 sharpen kernel.
public static ConvolutionKernel CreateSharpen()
Convolution kernel.

CreateSobelHorizontal

#
Create a sobel edge operator kernel.
public static ConvolutionKernel CreateSobelHorizontal(
operator
Sobel operator.
)
Sobel kernel.

CreateSobelVertical

#
Create a sobel edge operator kernel.
public static ConvolutionKernel CreateSobelVertical(
operator
Sobel operator.
)
Sobel kernel.

CreateUnsharp

#
Creates a standard 5x5 unsharp kernel.
public static ConvolutionKernel CreateUnsharp()
Convolution kernel.

Normalise

#
Normalise this kernel.
public ConvolutionKernel Normalise()
Normalised kernel.

ToString

#
Returns a string that represents the current object.
public override string ToString()
A string that represents the current object.
Object.ToString