Lines Matching refs:sum

48                                  sumtype* sum, int sumstep,     \
60 memset( sum, 0, (size.width+1)*sizeof(sum[0])); \
61 sumstep /= sizeof(sum[0]); \
62 sum += sumstep + 1; \
81 sum += sumstep ) \
83 sum[-1] = 0; \
88 sum[x] = sum[x - sumstep] + s; \
95 sum += sumstep, sqsum += sqsumstep ) \
97 sum[-1] = 0; \
107 t = sum[x - sumstep] + s; \
109 sum[x] = t; \
123 sum[-1] = tilted[-1] = 0; \
134 sum[x] = s; \
148 sum += sumstep; \
156 sum[-1] = 0; \
161 sum[0] = sum[-sumstep] + t0; \
174 sum[x] = sum[x - sumstep] + s; \
189 sum[x] = sum[x - sumstep] + s; \
211 sumtype* sum, int sumstep, \
218 memset( sum, 0, (size.width+1)*cn*sizeof(sum[0])); \
219 sumstep /= sizeof(sum[0]); \
220 sum += sumstep + cn; \
234 sum += sumstep ) \
237 sum[x] = 0; \
240 sum[x] = cast_macro(src[x]) + sum[x - cn]; \
243 sum[x] = sum[x] + sum[x - sumstep]; \
249 sum += sumstep, sqsum += sqsumstep ) \
253 sum[x] = 0; \
260 sumtype t = cast_macro(it) + sum[x-cn]; \
262 sum[x] = t; \
268 sumtype t = sum[x] + sum[x - sumstep]; \
270 sum[x] = t; \
299 const void* src, int srcstep, void* sum, int sumstep,
304 const void* src, int srcstep, void* sum, int sumstep,
322 CvMat sum_stub, *sum = (CvMat*)sumImage; in cvIntegral() local
339 CV_CALL( sum = cvGetMat( sum, &sum_stub, &coi1 )); in cvIntegral()
341 if( sum->width != src->width + 1 || in cvIntegral()
342 sum->height != src->height + 1 ) in cvIntegral()
345 if( (CV_MAT_DEPTH( sum->type ) != CV_64F && in cvIntegral()
347 CV_MAT_DEPTH( sum->type ) != CV_32S )) || in cvIntegral()
348 !CV_ARE_CNS_EQ( src, sum )) in cvIntegral()
356 if( !CV_ARE_SIZES_EQ( sum, sqsum ) ) in cvIntegral()
371 if( !CV_ARE_SIZES_EQ( sum, tilted ) ) in cvIntegral()
373 if( !CV_ARE_TYPES_EQ( sum, tilted ) ) in cvIntegral()
387 if( CV_MAT_DEPTH( sum->type ) == CV_32S ) in cvIntegral()
402 sum_step = sum->step ? sum->step : CV_STUB_STEP; in cvIntegral()
408 if( depth == CV_8U && !tilted && CV_MAT_DEPTH(sum->type) == CV_32S ) in cvIntegral()
412 sum->data.i, sum_step, size, 0 ) >= 0 ) in cvIntegral()
416 icvSqrIntegral_8u32s64f_C1R_p( src->data.ptr, src_step, sum->data.i, in cvIntegral()
421 IPPI_CALL( func_c1( src->data.ptr, src_step, sum->data.ptr, sum_step, in cvIntegral()
427 IPPI_CALL( func_cn( src->data.ptr, src_step, sum->data.ptr, sum_step, in cvIntegral()