Lines Matching full:weights
61 void Blur::generateGaussianWeights(float* weights, float radius) {
64 // Compute gaussian weights for the blur
83 weights[r + intRadius] = coeff1 * pow(e, floatR * floatR * coeff2);
84 normalizeFactor += weights[r + intRadius];
87 // Now we need to normalize the weights because all our coefficients need to add up to one
90 weights[r + intRadius] *= normalizeFactor;
94 void Blur::horizontal(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest,
105 const float* gPtr = weights;
137 void Blur::vertical(float* weights, int32_t radius, const uint8_t* source, uint8_t* dest,
147 const float* gPtr = weights;