콘텐츠로 이동

BlurKernel class

이 콘텐츠는 아직 번역되지 않았습니다.

Blur unit conversion. Filter blur is parameterized by Radius in DIPs = the kernel’s reach (the distance at which the Gaussian is treated as zero). The Gaussian standard deviation is sigma = Radius / KernelSigmas.

KernelSigmas (3) is the kernel half-width in sigmas used by the executors’ BuildKernel (kernelRadius = ceil(sigma * 3)). Keep this in sync if the kernel truncation changes.

public static class BlurKernel
name description
const KernelSigmas Kernel half-width expressed in standard deviations (matches ceil(sigma * 3)).
static RadiusToSigma(…) Converts a blur radius (DIP) to the Gaussian standard deviation.
static SigmaToRadius(…) Converts a Gaussian standard deviation to the blur radius (DIP).