Home
last modified time | relevance | path

Searched refs:sigma (Results 1 – 14 of 14) sorted by relevance

/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dthreshold_half.rscript39 // g(x) = ( 1 / sqrt( 2 * pi ) * sigma) * e ^ ( -x^2 / 2 * sigma^2 )
41 // and sigma varies with radius.
42 // Based on some experimental radius values and sigma's
43 // we approximately fit sigma = f(radius) as
44 // sigma = radius * 0.4 + 0.6
46 // will resemble a box blur since with large sigma
48 half sigma = 0.4f * (half)radius + 0.6f;
54 half coeff1 = 1.0f / (sqrt( 2.0f * pi ) * sigma);
55 half coeff2 = - 1.0f / (2.0f * sigma * sigma);
Dthreshold.rscript39 // g(x) = ( 1 / sqrt( 2 * pi ) * sigma) * e ^ ( -x^2 / 2 * sigma^2 )
41 // and sigma varies with radius.
42 // Based on some experimental radius values and sigma's
43 // we approximately fit sigma = f(radius) as
44 // sigma = radius * 0.4 + 0.6
46 // will resemble a box blur since with large sigma
48 float sigma = 0.4f * (float)radius + 0.6f;
54 float coeff1 = 1.0f / (sqrt( 2.0f * pi ) * sigma);
55 float coeff2 = - 1.0f / (2.0f * sigma * sigma);
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dthreshold.rscript39 // g(x) = ( 1 / sqrt( 2 * pi ) * sigma) * e ^ ( -x^2 / 2 * sigma^2 )
41 // and sigma varies with radius.
42 // Based on some experimental radius values and sigma's
43 // we approximately fit sigma = f(radius) as
44 // sigma = radius * 0.4 + 0.6
46 // will resemble a box blur since with large sigma
48 float sigma = 0.4f * (float)radius + 0.6f;
54 float coeff1 = 1.0f / (sqrt( 2.0f * pi ) * sigma);
55 float coeff2 = - 1.0f / (2.0f * sigma * sigma);
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dthreshold.rscript39 // g(x) = ( 1 / sqrt( 2 * pi ) * sigma) * e ^ ( -x^2 / 2 * sigma^2 )
41 // and sigma varies with radius.
42 // Based on some experimental radius values and sigma's
43 // we approximately fit sigma = f(radius) as
44 // sigma = radius * 0.4 + 0.6
46 // will resemble a box blur since with large sigma
48 float sigma = 0.4f * (float)radius + 0.6f;
54 float coeff1 = 1.0f / (sqrt( 2.0f * pi ) * sigma);
55 float coeff2 = - 1.0f / (2.0f * sigma * sigma);
/frameworks/base/libs/hwui/utils/
DBlur.cpp33 float Blur::convertSigmaToRadius(float sigma) { in convertSigmaToRadius() argument
34 return sigma > 0.5f ? (sigma - 0.5f) / BLUR_SIGMA_SCALE : 0.0f; in convertSigmaToRadius()
71 float sigma = legacyConvertRadiusToSigma(radius); in generateGaussianWeights() local
77 float coeff1 = 1.0f / (sqrt(2.0f * pi) * sigma); in generateGaussianWeights()
78 float coeff2 = -1.0f / (2.0f * sigma * sigma); in generateGaussianWeights()
DBlur.h31 static float convertSigmaToRadius(float sigma);
/frameworks/base/libs/hwui/jni/
DMaskFilter.cpp28 SkScalar sigma = convertRadiusToSigma(radius); in createBlur() local
29 SkMaskFilter* filter = SkMaskFilter::MakeBlur((SkBlurStyle)blurStyle, sigma).release(); in createBlur()
43 SkScalar sigma = convertRadiusToSigma(radius); in createEmboss() local
44 SkMaskFilter* filter = SkBlurMaskFilter::MakeEmboss(sigma, in createEmboss()
DPaint.cpp1103 SkScalar sigma = android::uirenderer::Blur::convertRadiusToSigma(radius); in setShadowLayer() local
1104 paint->setLooper(BlurDrawLooper::Make(color, cs.get(), sigma, {dx, dy})); in setShadowLayer()
/frameworks/rs/toolkit/test/
DReferenceBlur.kt112 val sigma: Float = 0.4f * radius.toFloat() + 0.6f in buildGaussian() constant
113 val coefficient1: Float = 1.0f / (sqrt(2.0f * pi) * sigma) in buildGaussian()
114 val coefficient2: Float = -1.0f / (2.0f * sigma * sigma) in buildGaussian()
/frameworks/native/services/sensorservice/
DFusion.h95 void update(const vec3_t& z, const vec3_t& Bi, float sigma);
DFusion.cpp495 void Fusion::update(const vec3_t& z, const vec3_t& Bi, float sigma) { in update() argument
508 const mat33_t R(sigma*sigma); in update()
/frameworks/rs/toolkit/
DBlur.cpp105 float sigma = 0.4f * mRadius + 0.6f; in ComputeGaussianWeights() local
109 float coeff1 = 1.0f / (sqrtf(2.0f * pi) * sigma); in ComputeGaussianWeights()
110 float coeff2 = - 1.0f / (2.0f * sigma * sigma); in ComputeGaussianWeights()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBlur.cpp75 float sigma = 0.4f * mRadius + 0.6f; in ComputeGaussianWeights() local
79 float coeff1 = 1.0f / (sqrtf(2.0f * pi) * sigma); in ComputeGaussianWeights()
80 float coeff2 = - 1.0f / (2.0f * sigma * sigma); in ComputeGaussianWeights()
/frameworks/base/core/java/android/location/
DLocation.java1249 double sigma = 0.0; in computeDistanceAndBearing() local
1268 sigma = Math.atan2(sinSigma, cosSigma); in computeDistanceAndBearing()
1285 lambda = l + (1.0 - cC) * f * sinAlpha * (sigma + cC * sinSigma * (cos2SM in computeDistanceAndBearing()
1294 results.mDistance = (float) (b * aA * (sigma - deltaSigma)); in computeDistanceAndBearing()