ConvolutionFilter

Inheritance: java.lang.Object

public final class ConvolutionFilter

内核矩阵提供程序类。

方法

方法描述
getSharpen3x3()获取 3x3 锐化核。
getSharpen5x5()获取 5x5 锐化核。
getEmboss3x3()获取 3x3 浮雕核。
getEmboss5x5()获取 5x5 浮雕核。
getBlurMotion(int size, double angle)获取运动模糊核。
getGaussian(int size, double sigma)获取高斯核。
getBlurBox(int size)获取方框模糊核。
toComplex(double[][] kernel)kernel 转换为 Complex 核。

getSharpen3x3()

public static double[][] getSharpen3x3()

获取 3x3 锐化核。

Returns: double[][] - 3x3 锐化核。

getSharpen5x5()

public static double[][] getSharpen5x5()

获取 5x5 锐化核。

Returns: double[][] - 5x5 锐化核。

getEmboss3x3()

public static double[][] getEmboss3x3()

获取 3x3 浮雕核。

Returns: double[][] - 3x3 浮雕核。

getEmboss5x5()

public static double[][] getEmboss5x5()

获取 5x5 浮雕核。

Returns: double[][] - 5x5 浮雕核。

getBlurMotion(int size, double angle)

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

获取运动模糊核。

Parameters:

参数类型描述
大小int核的大小。
angledouble运动角度。

Returns: double[][] - 运动模糊核。

getGaussian(int size, double sigma)

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

获取高斯核。

Parameters:

参数类型描述
大小int核的大小。
sigmadoublesigma 值在范围 (0…].

Returns: double[][] - 高斯核。

getBlurBox(int size)

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

获取方框模糊核。

Parameters:

参数类型描述
大小int核的大小。

Returns: double[][] - 盒式模糊核。

toComplex(double[][] kernel)

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

kernel 转换为 Complex 核。

Parameters:

参数类型描述
内核double[][]内核。

Returns: com.aspose.imaging.imagefilters.complexutils.Complex[][] - 一个 Complex 核。