CIImage.CreateByApplyingGaussianBlur(Double) 方法

定义

通过对提供的 sigma应用高斯模糊来创建新的 CIImage

[Foundation.Export("imageByApplyingGaussianBlurWithSigma:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual CoreImage.CIImage CreateByApplyingGaussianBlur (double sigma);
abstract member CreateByApplyingGaussianBlur : double -> CoreImage.CIImage
override this.CreateByApplyingGaussianBlur : double -> CoreImage.CIImage

参数

sigma
Double

定义 2D 高斯的标准偏差。

返回

属性

注解

2D 高斯定义为:

其中,zeta (z) 是保存像素坐标的向量,mu (μ) 是任一方向保存高斯平均值的向量。

定义 sigma 高斯的下降速率。 越 sigma 小的值越模糊越少的像素。

适用于