Lines Matching refs:sum
45 // of 1.0 which means that any sum of pixel weights must be equal to 1.0.
57 int sum = 0;
61 sum += m_weight_array[j * image_subpixel_scale + i];
64 if(sum == image_filter_scale) break;
66 double k = double(image_filter_scale) / double(sum);
67 sum = 0;
70 sum += m_weight_array[j * image_subpixel_scale + i] =
74 sum -= image_filter_scale;
75 int inc = (sum > 0) ? -1 : 1;
77 for(j = 0; j < m_diameter && sum; j++)
85 sum += inc;