Home
last modified time | relevance | path

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

/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
Dthreshold.fs39 // 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.cpp35 float Blur::convertSigmaToRadius(float sigma) { in convertSigmaToRadius() argument
36 return sigma > 0.5f ? (sigma - 0.5f) / BLUR_SIGMA_SCALE : 0.0f; in convertSigmaToRadius()
71 float sigma = legacyConvertRadiusToSigma((float) 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 ANDROID_API static float convertSigmaToRadius(float sigma);
/frameworks/base/core/jni/android/graphics/
DMaskFilter.cpp23 SkScalar sigma = SkBlurMask::ConvertRadiusToSigma(radius); in createBlur() local
24 SkMaskFilter* filter = SkBlurMaskFilter::Create((SkBlurStyle)blurStyle, sigma); in createBlur()
38 SkScalar sigma = SkBlurMask::ConvertRadiusToSigma(radius); in createEmboss() local
39 SkMaskFilter* filter = SkBlurMaskFilter::CreateEmboss(sigma, in createEmboss()
DPaint.cpp809 SkScalar sigma = android::uirenderer::Blur::convertRadiusToSigma(radius); in setShadowLayer() local
810 paint->setLooper(SkBlurDrawLooper::Create((SkColor)color, sigma, dx, dy))->unref(); in setShadowLayer()
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
Dthreshold.rs48 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/java/tests/ImageProcessing/src/com/android/rs/image/
Dthreshold.rs48 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/native/services/sensorservice/
DFusion.h79 void update(const vec3_t& z, const vec3_t& Bi, float sigma);
DFusion.cpp433 void Fusion::update(const vec3_t& z, const vec3_t& Bi, float sigma) { in update() argument
446 const mat33_t R(sigma*sigma); in update()
/frameworks/base/location/java/android/location/
DLocation.java317 double sigma = 0.0; in computeDistanceAndBearing() local
336 sigma = Math.atan2(sinSigma, cosSigma); // (16) in computeDistanceAndBearing()
363 (sigma + C * sinSigma * in computeDistanceAndBearing()
373 float distance = (float) (b * A * (sigma - deltaSigma)); in computeDistanceAndBearing()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBlur.cpp78 float sigma = 0.4f * mRadius + 0.6f; in ComputeGaussianWeights() local
82 float coeff1 = 1.0f / (sqrtf(2.0f * pi) * sigma); in ComputeGaussianWeights()
83 float coeff2 = - 1.0f / (2.0f * sigma * sigma); in ComputeGaussianWeights()