Home | History | Annotate | Download | only in utils

Lines Matching full:sigma

33 float Blur::convertSigmaToRadius(float sigma) {
34 return sigma > 0.5f ? (sigma - 0.5f) / BLUR_SIGMA_SCALE : 0.0f;
50 * for sigma and to preserve compatibility we have kept that logic.
52 * Based on some experimental radius and sigma values we approximate the
53 * equation sigma = f(radius) as sigma = radius * 0.3 + 0.6. The larger the
55 * large sigma the gaussian curve begins to lose its shape.
68 // g(x) = ( 1 / sqrt( 2 * pi ) * sigma) * e ^ ( -x^2 / 2 * sigma^2 )
70 // and sigma varies with radius.
71 float sigma = legacyConvertRadiusToSigma(radius);
77 float coeff1 = 1.0f / (sqrt(2.0f * pi) * sigma);
78 float coeff2 = -1.0f / (2.0f * sigma * sigma);