Searched refs:gaussian (Results 1 – 5 of 5) sorted by relevance
/frameworks/rs/toolkit/test/ |
D | ReferenceBlur.kt | 38 val gaussian = buildGaussian(radius) in <lambda>() constant 44 val scratch = horizontalBlur(inputInFloat, gaussian, radius, restriction) in <lambda>() 45 val outInFloat = verticalBlur(scratch, gaussian, radius, restriction) in <lambda>() 56 gaussian: FloatArray, in horizontalBlur() 76 val v = input[x + delta, y] * gaussian[gaussianIndex] in horizontalBlur() 88 gaussian: FloatArray, in verticalBlur() 96 val v = input[x, y + delta] * gaussian[gaussianIndex] in verticalBlur() 117 val gaussian = FloatArray(radius * 2 + 1) in buildGaussian() constant 121 gaussian[r + radius] = v in buildGaussian() 128 gaussian[r + radius] *= normalizeFactor in buildGaussian() [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | threshold.rscript | 31 static float gaussian[MAX_RADIUS * 2 + 1]; 35 // Compute gaussian weights for the blur 45 // The larger the radius gets, the more our gaussian blur 47 // the gaussian curve begins to lose its shape 61 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2); 62 normalizeFactor += gaussian[r + radius]; 69 gaussian[r + radius] *= normalizeFactor; 84 blurredPixel += i.xyz * gaussian[gi++]; 90 blurredPixel += i.xyz * gaussian[gi++]; 105 blurredPixel += i * gaussian[gi++]; [all …]
|
D | threshold_half.rscript | 31 static half gaussian[MAX_RADIUS * 2 + 1]; 35 // Compute gaussian weights for the blur 45 // The larger the radius gets, the more our gaussian blur 47 // the gaussian curve begins to lose its shape 61 gaussian[r + radius] = coeff1 * pow(e, halfR * halfR * coeff2); 62 normalizeFactor += gaussian[r + radius]; 69 gaussian[r + radius] *= normalizeFactor; 84 blurredPixel += i.xyz * gaussian[gi++]; 90 blurredPixel += i.xyz * gaussian[gi++]; 105 blurredPixel += i * gaussian[gi++]; [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | threshold.rscript | 31 static float gaussian[MAX_RADIUS * 2 + 1]; 35 // Compute gaussian weights for the blur 45 // The larger the radius gets, the more our gaussian blur 47 // the gaussian curve begins to lose its shape 61 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2); 62 normalizeFactor += gaussian[r + radius]; 69 gaussian[r + radius] *= normalizeFactor; 84 blurredPixel += i.xyz * gaussian[gi++]; 90 blurredPixel += i.xyz * gaussian[gi++]; 105 blurredPixel += i * gaussian[gi++]; [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | threshold.rscript | 31 static float gaussian[MAX_RADIUS * 2 + 1]; 35 // Compute gaussian weights for the blur 45 // The larger the radius gets, the more our gaussian blur 47 // the gaussian curve begins to lose its shape 61 gaussian[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2); 62 normalizeFactor += gaussian[r + radius]; 69 gaussian[r + radius] *= normalizeFactor; 84 blurredPixel += i.xyz * gaussian[gi++]; 90 blurredPixel += i.xyz * gaussian[gi++]; 105 blurredPixel += i * gaussian[gi++]; [all …]
|