ConvolutionFilter Class

Summary: The kernel matrix provider class.

Module: aspose.imaging.imagefilters.convolution

Full Name: aspose.imaging.imagefilters.convolution.ConvolutionFilter

Methods

NameDescription
get_blur_box(size)Gets the box blur kernel.
get_blur_motion(size, angle)Gets the motion blur kernel.
get_emboss_3x3()Gets the 3x3 Emboss kernel.
get_emboss_5x5()Gets the 5x5 Emboss kernel.
get_gaussian(size, sigma)Gets the Gaussian kernel.
get_sharpen_3x3()Gets the 3x3 sharpen kernel.
get_sharpen_5x5()Gets the 5x5 sharpen kernel.
to_complex(kernel)Converts kernel to a Complex kernel.

Method: get_blur_box(size) [static]

 get_blur_box(size) 

Gets the box blur kernel.

Parameters:

ParameterTypeDescription
sizeintThe kernel size.

Returns

TypeDescription
float[]The box blur kernel.

Method: get_blur_motion(size, angle) [static]

 get_blur_motion(size, angle) 

Gets the motion blur kernel.

Parameters:

ParameterTypeDescription
sizeintThe kernel size.
anglefloatThe motion angle.

Returns

TypeDescription
float[]The motion blur kernel.

Method: get_emboss_3x3() [static]

 get_emboss_3x3() 

Gets the 3x3 Emboss kernel.

Returns

TypeDescription
float[]

Method: get_emboss_5x5() [static]

 get_emboss_5x5() 

Gets the 5x5 Emboss kernel.

Returns

TypeDescription
float[]

Method: get_gaussian(size, sigma) [static]

 get_gaussian(size, sigma) 

Gets the Gaussian kernel.

Parameters:

ParameterTypeDescription
sizeintThe kernel size.
sigmafloatThe sigma value in range (0…].

Returns

TypeDescription
float[]The Gaussian kernel.

Method: get_sharpen_3x3() [static]

 get_sharpen_3x3() 

Gets the 3x3 sharpen kernel.

Returns

TypeDescription
float[]

Method: get_sharpen_5x5() [static]

 get_sharpen_5x5() 

Gets the 5x5 sharpen kernel.

Returns

TypeDescription
float[]

Method: to_complex(kernel) [static]

 to_complex(kernel) 

Converts kernel to a Complex kernel.

Parameters:

ParameterTypeDescription
kernelfloat[]The kernel.

Returns

TypeDescription
Complex[]A Complex kernel.