Home | History | Annotate | Download | only in utils

Lines Matching refs:weights

63 void Blur::generateGaussianWeights(float* weights, int32_t radius) {
64 // Compute gaussian weights for the blur
83 weights[r + radius] = coeff1 * pow(e, floatR * floatR * coeff2);
84 normalizeFactor += weights[r + radius];
87 //Now we need to normalize the weights because all our coefficients need to add up to one
90 weights[r + radius] *= normalizeFactor;
94 void Blur::horizontal(float* weights, int32_t radius,
106 const float* gPtr = weights;
138 void Blur::vertical(float* weights, int32_t radius,
148 const float* gPtr = weights;