Düzenle

Aracılığıyla paylaş


CIImage.CreateByApplyingGaussianBlur(Double) Method

Definition

Creates a new CIImage by applying a Gaussian blur with the provided sigma.

[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

Parameters

sigma
Double

The standard deviation defining the 2D Gaussian.

Returns

Attributes

Remarks

The 2D Gaussian is defined as:

Where zeta (z) is a vector holding the pixel coordinates and mu (μ) is a vector holding the mean of the Gaussian in either direction.

The sigma defines the rate of falloff of the Gaussian. Smaller sigma values blur over fewer pixels.

Applies to