Home | History | Annotate | Download | only in src

Lines Matching refs:sum

82     sum = 0;
94 sum = 0;
117 sum = 0;
181 s = sum = buf_end + cvAlign((width + ksize.width - 1)*CV_ELEM_SIZE(src_type), ALIGN);
253 int* sum = (int*)state->get_sum_buf();
268 int s0 = sum[i] + sp[i], s1 = sum[i+1] + sp[i+1];
269 sum[i] = s0; sum[i+1] = s1;
273 sum[i] += sp[i];
282 int s0 = sum[i] + sp[i], s1 = sum[i+1] + sp[i+1];
285 sum[i] = s0; sum[i+1] = s1;
291 int s0 = sum[i] + sp[i], t0 = CV_DESCALE(s0*iscale, BLUR_SHIFT);
292 sum[i] = s0 - sm[i]; dst[i] = (uchar)t0;
312 int* sum = (int*)state->get_sum_buf();
328 int s0 = sum[i] + sp[i], s1 = sum[i+1] + sp[i+1];
329 sum[i] = s0; sum[i+1] = s1;
333 sum[i] += sp[i];
342 int s0 = sum[i] + sp[i], s1 = sum[i+1] + sp[i+1];
345 sum[i] = s0; sum[i+1] = s1;
350 int s0 = sum[i] + sp[i];
352 sum[i] = s0 - sm[i];
361 int s0 = sum[i] + sp[i], s1 = sum[i+1] + sp[i+1];
364 sum[i] = s0; sum[i+1] = s1;
369 int s0 = sum[i] + sp[i];
371 sum[i] = s0 - sm[i];
388 int* sum = (int*)state->get_sum_buf();
404 int s0 = sum[i] + sp[i], s1 = sum[i+1] + sp[i+1];
405 sum[i] = s0; sum[i+1] = s1;
409 sum[i] += sp[i];
418 int s0 = sum[i] + sp[i], s1 = sum[i+1] + sp[i+1];
421 sum[i] = s0; sum[i+1] = s1;
426 int s0 = sum[i] + sp[i];
428 sum[i] = s0 - sm[i];
448 double* sum = (double*)state->get_sum_buf();
464 double s0 = sum[i] + sp[i], s1 = sum[i+1] + sp[i+1];
465 sum[i] = s0; sum[i+1] = s1;
469 sum[i] += sp[i];
479 double s0 = sum[i] + sp[i], s1 = sum[i+1] + sp[i+1];
483 sum[i] = s0; sum[i+1] = s1;
488 double s0 = sum[i] + sp[i], s1 = sum[i+1] + sp[i+1];
491 sum[i] = s0; sum[i+1] = s1;
496 double s0 = sum[i] + sp[i], t0 = s0*scale;
497 sum[i] = s0 - sm[i]; dst[i] = (float)t0;
729 int t = 2*r*r + 2*r, b, sum = 0;
736 sum += H[c].coarse[k];
737 if ( sum > t ) {
738 sum -= H[c].coarse[k];
767 sum += segment[b];
768 if ( sum > t ) {
1099 float sum = 0, wsum = 0;
1105 sum += val*w;
1109 dptr[j] = (uchar)cvRound(sum/wsum);
1242 float sum = 0, wsum = 0;
1251 sum += val*w;
1254 dptr[j] = (float)(sum/wsum);