ConvolutionFilter

Inheritance: java.lang.Object

public final class ConvolutionFilter

The kernel matrix provider class.

Methods

MethodDescription
getSharpen3x3()Gets the 3x3 sharpen kernel.
getSharpen5x5()Gets the 5x5 sharpen kernel.
getEmboss3x3()Gets the 3x3 Emboss kernel.
getEmboss5x5()Gets the 5x5 Emboss kernel.
getBlurMotion(int size, double angle)Gets the motion blur kernel.
getGaussian(int size, double sigma)Gets the Gaussian kernel.
getBlurBox(int size)Gets the box blur kernel.
toComplex(double[][] kernel)Converts kernel to a Complex kernel.

getSharpen3x3()

public static double[][] getSharpen3x3()

Gets the 3x3 sharpen kernel.

Returns: double[][] - the 3x3 sharpen kernel.

getSharpen5x5()

public static double[][] getSharpen5x5()

Gets the 5x5 sharpen kernel.

Returns: double[][] - the 5x5 sharpen kernel.

getEmboss3x3()

public static double[][] getEmboss3x3()

Gets the 3x3 Emboss kernel.

Returns: double[][] - the 3x3 Emboss kernel.

getEmboss5x5()

public static double[][] getEmboss5x5()

Gets the 5x5 Emboss kernel.

Returns: double[][] - the 5x5 Emboss kernel.

getBlurMotion(int size, double angle)

public static double[][] getBlurMotion(int size, double angle)

Gets the motion blur kernel.

Parameters:

ParameterTypeDescription
sizeintThe kernel size.
angledoubleThe motion angle.

Returns: double[][] - The motion blur kernel.

getGaussian(int size, double sigma)

public static double[][] getGaussian(int size, double sigma)

Gets the Gaussian kernel.

Parameters:

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

Returns: double[][] - The Gaussian kernel.

getBlurBox(int size)

public static double[][] getBlurBox(int size)

Gets the box blur kernel.

Parameters:

ParameterTypeDescription
sizeintThe kernel size.

Returns: double[][] - The box blur kernel.

toComplex(double[][] kernel)

public static Complex[][] toComplex(double[][] kernel)

Converts kernel to a Complex kernel.

Parameters:

ParameterTypeDescription
kerneldouble[][]The kernel.

Returns: com.aspose.imaging.imagefilters.complexutils.Complex[][] - A Complex kernel.