ComputePixelsForSigma Data Member Function

For a given sigma ( desired blurriness ), computes the diameter of the kernel filter required for a corresponding sigma value. Due to the requirements of convolution kernel sizes, the number return by this function will always be odd. Note that this value should not be confused with the radius of the kernel. For example: a 9x9 kernel has a kernel radius of 4. This function is concerned with computing the kernel diameter, which is 9. Kernel diameter values must always be odd, and kernel radius values must always be computed as kernel_diameter / 2. For example: when kernel_diameter is 9, the <int32> division produces a kernel radius of 4.

Prototype

int32 ComputePixelsForSigma( double p_dSigma )

Parameters

Parameter Type Parameter Name Documentation
doublep_dSigmaA <float64> representing the value of sigma ( strength of the blur ).

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.