sum 2487 3rdparty/libpng/pngwutil.c png_uint_32 sum = 0; sum 2494 3rdparty/libpng/pngwutil.c sum += (v < 128) ? v : 256 - v; sum 2502 3rdparty/libpng/pngwutil.c sumlo = sum & PNG_LOMASK; sum 2503 3rdparty/libpng/pngwutil.c sumhi = (sum >> PNG_HISHIFT) & PNG_HIMASK; /* Gives us some footroom */ sum 2529 3rdparty/libpng/pngwutil.c sum = PNG_MAXSUM; sum 2532 3rdparty/libpng/pngwutil.c sum = (sumhi << PNG_HISHIFT) + sumlo; sum 2535 3rdparty/libpng/pngwutil.c mins = sum; sum 2563 3rdparty/libpng/pngwutil.c png_uint_32 sum = 0, lmins = mins; sum 2610 3rdparty/libpng/pngwutil.c sum += (v < 128) ? v : 256 - v; sum 2618 3rdparty/libpng/pngwutil.c sum += (v < 128) ? v : 256 - v; sum 2620 3rdparty/libpng/pngwutil.c if (sum > lmins) /* We are already worse, don't continue. */ sum 2629 3rdparty/libpng/pngwutil.c sumlo = sum & PNG_LOMASK; sum 2630 3rdparty/libpng/pngwutil.c sumhi = (sum >> PNG_HISHIFT) & PNG_HIMASK; sum 2651 3rdparty/libpng/pngwutil.c sum = PNG_MAXSUM; sum 2654 3rdparty/libpng/pngwutil.c sum = (sumhi << PNG_HISHIFT) + sumlo; sum 2658 3rdparty/libpng/pngwutil.c if (sum < mins) sum 2660 3rdparty/libpng/pngwutil.c mins = sum; sum 2684 3rdparty/libpng/pngwutil.c png_uint_32 sum = 0, lmins = mins; sum 2728 3rdparty/libpng/pngwutil.c sum += (v < 128) ? v : 256 - v; sum 2730 3rdparty/libpng/pngwutil.c if (sum > lmins) /* We are already worse, don't continue. */ sum 2739 3rdparty/libpng/pngwutil.c sumlo = sum & PNG_LOMASK; sum 2740 3rdparty/libpng/pngwutil.c sumhi = (sum >> PNG_HISHIFT) & PNG_HIMASK; sum 2761 3rdparty/libpng/pngwutil.c sum = PNG_MAXSUM; sum 2764 3rdparty/libpng/pngwutil.c sum = (sumhi << PNG_HISHIFT) + sumlo; sum 2768 3rdparty/libpng/pngwutil.c if (sum < mins) sum 2770 3rdparty/libpng/pngwutil.c mins = sum; sum 2798 3rdparty/libpng/pngwutil.c png_uint_32 sum = 0, lmins = mins; sum 2841 3rdparty/libpng/pngwutil.c sum += (v < 128) ? v : 256 - v; sum 2849 3rdparty/libpng/pngwutil.c sum += (v < 128) ? v : 256 - v; sum 2851 3rdparty/libpng/pngwutil.c if (sum > lmins) /* We are already worse, don't continue. */ sum 2860 3rdparty/libpng/pngwutil.c sumlo = sum & PNG_LOMASK; sum 2861 3rdparty/libpng/pngwutil.c sumhi = (sum >> PNG_HISHIFT) & PNG_HIMASK; sum 2882 3rdparty/libpng/pngwutil.c sum = PNG_MAXSUM; sum 2885 3rdparty/libpng/pngwutil.c sum = (sumhi << PNG_HISHIFT) + sumlo; sum 2889 3rdparty/libpng/pngwutil.c if (sum < mins) sum 2891 3rdparty/libpng/pngwutil.c mins = sum; sum 2939 3rdparty/libpng/pngwutil.c png_uint_32 sum = 0, lmins = mins; sum 2982 3rdparty/libpng/pngwutil.c sum += (v < 128) ? v : 256 - v; sum 3024 3rdparty/libpng/pngwutil.c sum += (v < 128) ? v : 256 - v; sum 3026 3rdparty/libpng/pngwutil.c if (sum > lmins) /* We are already worse, don't continue. */ sum 3035 3rdparty/libpng/pngwutil.c sumlo = sum & PNG_LOMASK; sum 3036 3rdparty/libpng/pngwutil.c sumhi = (sum >> PNG_HISHIFT) & PNG_HIMASK; sum 3057 3rdparty/libpng/pngwutil.c sum = PNG_MAXSUM; sum 3060 3rdparty/libpng/pngwutil.c sum = (sumhi << PNG_HISHIFT) + sumlo; sum 3064 3rdparty/libpng/pngwutil.c if (sum < mins) sum 570 3rdparty/libwebp/dsp/enc.c int sum = 0; sum 595 3rdparty/libwebp/dsp/enc.c sum += w[ 0] * abs(b0); sum 596 3rdparty/libwebp/dsp/enc.c sum += w[ 4] * abs(b1); sum 597 3rdparty/libwebp/dsp/enc.c sum += w[ 8] * abs(b2); sum 598 3rdparty/libwebp/dsp/enc.c sum += w[12] * abs(b3); sum 600 3rdparty/libwebp/dsp/enc.c return sum; sum 425 3rdparty/libwebp/dsp/enc_neon.c int sum; sum 596 3rdparty/libwebp/dsp/enc_neon.c : [sum] "=r"(sum), [a] "+r"(A), [b] "+r"(B), [w] "+r"(W) sum 602 3rdparty/libwebp/dsp/enc_neon.c return sum; sum 566 3rdparty/libwebp/dsp/enc_sse2.c const __m128i sum = _mm_add_epi32(sum1, sum2); sum 567 3rdparty/libwebp/dsp/enc_sse2.c _mm_storeu_si128((__m128i*)tmp, sum); sum 643 3rdparty/libwebp/dsp/enc_sse2.c int32_t sum[4]; sum 784 3rdparty/libwebp/dsp/enc_sse2.c _mm_storeu_si128((__m128i*)&sum[0], A_b0); sum 786 3rdparty/libwebp/dsp/enc_sse2.c return sum[0] + sum[1] + sum[2] + sum[3]; sum 391 3rdparty/libwebp/enc/backward_references.c int sum = 0; sum 395 3rdparty/libwebp/enc/backward_references.c sum += population_counts[i]; sum 403 3rdparty/libwebp/enc/backward_references.c const double logsum = VP8LFastLog2(sum); sum 105 3rdparty/libwebp/enc/histogram.c int sum = 0; sum 112 3rdparty/libwebp/enc/histogram.c sum += array[i]; sum 120 3rdparty/libwebp/enc/histogram.c retval += VP8LFastSLog2(sum); sum 130 3rdparty/libwebp/enc/histogram.c return 0.99 * sum + 0.01 * retval; sum 146 3rdparty/libwebp/enc/histogram.c double min_limit = 2 * sum - max_val; sum 145 3rdparty/libwebp/enc/quant.c int sum = 0; sum 157 3rdparty/libwebp/enc/quant.c sum += m->q_[j]; sum 159 3rdparty/libwebp/enc/quant.c return (sum + 8) >> 4; sum 78 3rdparty/libwebp/utils/huffman_encode.c int sum = 0; sum 83 3rdparty/libwebp/utils/huffman_encode.c if (stride >= 4 || (stride >= 3 && sum == 0)) { sum 86 3rdparty/libwebp/utils/huffman_encode.c int count = (sum + stride / 2) / stride; sum 90 3rdparty/libwebp/utils/huffman_encode.c if (sum == 0) { sum 101 3rdparty/libwebp/utils/huffman_encode.c sum = 0; sum 115 3rdparty/libwebp/utils/huffman_encode.c sum += counts[i]; sum 117 3rdparty/libwebp/utils/huffman_encode.c limit = (sum + stride / 2) / stride; sum 62 3rdparty/libwebp/utils/rescaler.c int sum = 0; sum 66 3rdparty/libwebp/utils/rescaler.c sum += src[x_in]; sum 73 3rdparty/libwebp/utils/rescaler.c wrk->frow[x_out] = (sum + base) * wrk->x_sub - frac; sum 75 3rdparty/libwebp/utils/rescaler.c sum = (int)MULT_FIX(frac, wrk->fx_scale); sum 2920 3rdparty/openexr/Imath/ImathMatrix.h T sum = (T)0; sum 2922 3rdparty/openexr/Imath/ImathMatrix.h if (x[0][3] != 0.) sum -= x[0][3] * fastMinor(1,2,3,0,1,2); sum 2923 3rdparty/openexr/Imath/ImathMatrix.h if (x[1][3] != 0.) sum += x[1][3] * fastMinor(0,2,3,0,1,2); sum 2924 3rdparty/openexr/Imath/ImathMatrix.h if (x[2][3] != 0.) sum -= x[2][3] * fastMinor(0,1,3,0,1,2); sum 2925 3rdparty/openexr/Imath/ImathMatrix.h if (x[3][3] != 0.) sum += x[3][3] * fastMinor(0,1,2,0,1,2); sum 2927 3rdparty/openexr/Imath/ImathMatrix.h return sum; sum 331 3rdparty/zlib/crc32.c unsigned long sum; sum 333 3rdparty/zlib/crc32.c sum = 0; sum 336 3rdparty/zlib/crc32.c sum ^= *mat; sum 340 3rdparty/zlib/crc32.c return sum; sum 1406 apps/traincascade/boost.cpp double sum = 0; sum 1414 apps/traincascade/boost.cpp sum += ((CvCascadeBoostTree*)wtree)->predict(sampleIdx)->value; sum 1417 apps/traincascade/boost.cpp sum = sum < threshold - CV_THRESHOLD_EPS ? 0.0 : 1.0; sum 1418 apps/traincascade/boost.cpp return (float)sum; sum 9 apps/traincascade/features.cpp float calcNormFactor( const Mat& sum, const Mat& sqSum ) sum 11 apps/traincascade/features.cpp CV_DbgAssert( sum.cols > 3 && sqSum.rows > 3 ); sum 12 apps/traincascade/features.cpp Rect normrect( 1, 1, sum.cols - 3, sum.rows - 3 ); sum 14 apps/traincascade/features.cpp CV_SUM_OFFSETS( p0, p1, p2, p3, normrect, sum.step1() ) sum 16 apps/traincascade/features.cpp const int *sp = sum.ptr<int>(); sum 92 apps/traincascade/haarfeatures.cpp sum.create((int)_maxSampleCount, cols, CV_32SC1); sum 100 apps/traincascade/haarfeatures.cpp CV_DbgAssert( !sum.empty() && !tilted.empty() && !normfactor.empty() ); sum 102 apps/traincascade/haarfeatures.cpp Mat innSum(winSize.height + 1, winSize.width + 1, sum.type(), sum.ptr<int>((int)idx)); sum 51 apps/traincascade/haarfeatures.h float calc( const cv::Mat &sum, const cv::Mat &tilted, size_t y) const; sum 68 apps/traincascade/haarfeatures.h cv::Mat sum; /* sum images (each row represents image) */ sum 76 apps/traincascade/haarfeatures.h return !nf ? 0.0f : (features[featureIdx].calc( sum, tilted, sampleIdx)/nf); sum 18 apps/traincascade/lbpfeatures.cpp sum.create((int)_maxSampleCount, (_winSize.width + 1) * (_winSize.height + 1), CV_32SC1); sum 24 apps/traincascade/lbpfeatures.cpp CV_DbgAssert( !sum.empty() ); sum 26 apps/traincascade/lbpfeatures.cpp Mat innSum(winSize.height + 1, winSize.width + 1, sum.type(), sum.ptr<int>((int)idx)); sum 21 apps/traincascade/lbpfeatures.h { return (float)features[featureIdx].calc( sum, sampleIdx); } sum 39 apps/traincascade/lbpfeatures.h cv::Mat sum; sum 221 apps/traincascade/old_ml.hpp CvMat** sum; sum 196 apps/traincascade/old_ml_boost.cpp double sum = 0, sum_abs = 0; sum 203 apps/traincascade/old_ml_boost.cpp sum += d*w; sum_abs += (d & 1)*w; sum 207 apps/traincascade/old_ml_boost.cpp R = (sum_abs + sum) * 0.5; sum 208 apps/traincascade/old_ml_boost.cpp L = (sum_abs - sum) * 0.5; sum 571 apps/traincascade/old_ml_boost.cpp double* sum = (double*)cv::alignPtr(base_buf,sizeof(double)) + 1; sum 572 apps/traincascade/old_ml_boost.cpp double* counts = sum + mi + 1; sum 578 apps/traincascade/old_ml_boost.cpp sum[i] = counts[i] = 0; sum 585 apps/traincascade/old_ml_boost.cpp double s = sum[idx] + responses[i]*w; sum 587 apps/traincascade/old_ml_boost.cpp sum[idx] = s; sum 595 apps/traincascade/old_ml_boost.cpp rsum += sum[i]; sum 596 apps/traincascade/old_ml_boost.cpp sum[i] = fabs(counts[i]) > DBL_EPSILON ? sum[i]/counts[i] : 0; sum 597 apps/traincascade/old_ml_boost.cpp sum_ptr[i] = sum + i; sum 605 apps/traincascade/old_ml_boost.cpp sum[i] *= counts[i]; sum 609 apps/traincascade/old_ml_boost.cpp int idx = (int)(sum_ptr[subset_i] - sum); sum 614 apps/traincascade/old_ml_boost.cpp double s = sum[idx]; sum 639 apps/traincascade/old_ml_boost.cpp int idx = (int)(sum_ptr[i] - sum); sum 674 apps/traincascade/old_ml_boost.cpp double sum = 0, sum_abs = 0; sum 682 apps/traincascade/old_ml_boost.cpp sum += d*w; sum_abs += (d & 1)*w; sum 686 apps/traincascade/old_ml_boost.cpp RR = (sum_abs + sum)*0.5; sum 687 apps/traincascade/old_ml_boost.cpp LR = (sum_abs - sum)*0.5; sum 759 apps/traincascade/old_ml_boost.cpp double sum = lc[idx] + d*w; sum 761 apps/traincascade/old_ml_boost.cpp lc[idx] = sum; rc[idx] = sum_abs; sum 766 apps/traincascade/old_ml_boost.cpp double sum = lc[i]; sum 768 apps/traincascade/old_ml_boost.cpp lc[i] = (sum_abs - sum) * 0.5; sum 769 apps/traincascade/old_ml_boost.cpp rc[i] = (sum_abs + sum) * 0.5; sum 848 apps/traincascade/old_ml_boost.cpp double sum = 0, sum2 = 0, iw; sum 860 apps/traincascade/old_ml_boost.cpp sum += t*w; sum 865 apps/traincascade/old_ml_boost.cpp node->value = sum*iw; sum 866 apps/traincascade/old_ml_boost.cpp node->node_risk = sum2 - (sum*iw)*sum; sum 1435 apps/traincascade/old_ml_boost.cpp double sum, threshold; sum 1447 apps/traincascade/old_ml_boost.cpp sum = 1. - params.weight_trim_rate; sum 1452 apps/traincascade/old_ml_boost.cpp if( sum <= 0 ) sum 1454 apps/traincascade/old_ml_boost.cpp sum -= w; sum 1610 apps/traincascade/old_ml_boost.cpp double sum = 0; sum 1765 apps/traincascade/old_ml_boost.cpp sum += node->value; sum 1812 apps/traincascade/old_ml_boost.cpp sum += node->value; sum 1817 apps/traincascade/old_ml_boost.cpp value = (float)sum; sum 1820 apps/traincascade/old_ml_boost.cpp int cls_idx = sum >= 0; sum 130 apps/traincascade/old_ml_inner_functions.cpp float sum; sum 137 apps/traincascade/old_ml_inner_functions.cpp sum = 0; sum 139 apps/traincascade/old_ml_inner_functions.cpp sum += CV_MAT_ELEM(*S, float, k, i) * CV_MAT_ELEM(*S, float, k, i); sum 141 apps/traincascade/old_ml_inner_functions.cpp CV_MAT_ELEM(*S, float, i, i) = (float)sqrt(CV_MAT_ELEM(*A, float, i, i) - sum); sum 145 apps/traincascade/old_ml_inner_functions.cpp sum = 0; sum 147 apps/traincascade/old_ml_inner_functions.cpp sum += CV_MAT_ELEM(*S, float, k, i) * CV_MAT_ELEM(*S, float, k, j); sum 150 apps/traincascade/old_ml_inner_functions.cpp (CV_MAT_ELEM(*A, float, i, j) - sum) / CV_MAT_ELEM(*S, float, i, i); sum 1780 apps/traincascade/old_ml_inner_functions.cpp double prob, maxprob, sum; sum 1788 apps/traincascade/old_ml_inner_functions.cpp sum = maxprob; sum 1792 apps/traincascade/old_ml_inner_functions.cpp sum += prob; sum 1799 apps/traincascade/old_ml_inner_functions.cpp if( normalize_probs && fabs(sum - 1.) > FLT_EPSILON ) sum 1802 apps/traincascade/old_ml_inner_functions.cpp prob_vector[i] /= sum; sum 1804 apps/traincascade/old_ml_inner_functions.cpp if( fabs(r - 1.) > FLT_EPSILON && fabs(sum - 1.) < outlier_thresh ) sum 649 apps/traincascade/old_ml_tree.cpp double sum = 0; sum 657 apps/traincascade/old_ml_tree.cpp sum += val; sum 662 apps/traincascade/old_ml_tree.cpp cvScale( priors, priors, 1./sum ); sum 1788 apps/traincascade/old_ml_tree.cpp int sum = 0, sum_abs = 0; sum 1795 apps/traincascade/old_ml_tree.cpp sum += d; sum_abs += d & 1; sum 1799 apps/traincascade/old_ml_tree.cpp R = (sum_abs + sum) >> 1; sum 1800 apps/traincascade/old_ml_tree.cpp L = (sum_abs - sum) >> 1; sum 1805 apps/traincascade/old_ml_tree.cpp double sum = 0, sum_abs = 0; sum 1814 apps/traincascade/old_ml_tree.cpp sum += d*w; sum_abs += (d & 1)*w; sum 1818 apps/traincascade/old_ml_tree.cpp R = (sum_abs + sum) * 0.5; sum 1819 apps/traincascade/old_ml_tree.cpp L = (sum_abs - sum) * 0.5; sum 2106 apps/traincascade/old_ml_tree.cpp int sum = 0; sum 2112 apps/traincascade/old_ml_tree.cpp sum += v[j]; sum 2113 apps/traincascade/old_ml_tree.cpp v_weights[i] = sum ? 1./sum : 0.; sum 2150 apps/traincascade/old_ml_tree.cpp int sum = 0; sum 2152 apps/traincascade/old_ml_tree.cpp sum += s[j]; sum 2153 apps/traincascade/old_ml_tree.cpp c_weights[i] = sum ? 1./sum : 0; sum 2263 apps/traincascade/old_ml_tree.cpp int sum = 0; sum 2265 apps/traincascade/old_ml_tree.cpp sum += cjk[j*m + k]; sum 2266 apps/traincascade/old_ml_tree.cpp rc[k] = sum; sum 2272 apps/traincascade/old_ml_tree.cpp double sum = 0; sum 2274 apps/traincascade/old_ml_tree.cpp sum += cjk[j*m + k]*priors[k]; sum 2275 apps/traincascade/old_ml_tree.cpp c_weights[j] = sum; sum 2454 apps/traincascade/old_ml_tree.cpp double* sum = (double*)cv::alignPtr(base_buf,sizeof(double)) + 1; sum 2455 apps/traincascade/old_ml_tree.cpp int* counts = (int*)(sum + mi) + 1; sum 2462 apps/traincascade/old_ml_tree.cpp sum[i] = counts[i] = 0; sum 2468 apps/traincascade/old_ml_tree.cpp double s = sum[idx] + responses[i]; sum 2470 apps/traincascade/old_ml_tree.cpp sum[idx] = s; sum 2478 apps/traincascade/old_ml_tree.cpp rsum += sum[i]; sum 2479 apps/traincascade/old_ml_tree.cpp sum[i] /= MAX(counts[i],1); sum 2480 apps/traincascade/old_ml_tree.cpp sum_ptr[i] = sum + i; sum 2488 apps/traincascade/old_ml_tree.cpp sum[i] *= counts[i]; sum 2492 apps/traincascade/old_ml_tree.cpp int idx = (int)(sum_ptr[subset_i] - sum); sum 2497 apps/traincascade/old_ml_tree.cpp double s = sum[idx]; sum 2522 apps/traincascade/old_ml_tree.cpp int idx = (int)(sum_ptr[i] - sum); sum 2555 apps/traincascade/old_ml_tree.cpp int sum = 0, sum_abs = 0; sum 2560 apps/traincascade/old_ml_tree.cpp sum += d; sum_abs += d & 1; sum 2564 apps/traincascade/old_ml_tree.cpp RR = (sum_abs + sum) >> 1; sum 2565 apps/traincascade/old_ml_tree.cpp LR = (sum_abs - sum) >> 1; sum 2599 apps/traincascade/old_ml_tree.cpp double sum = 0, sum_abs = 0; sum 2610 apps/traincascade/old_ml_tree.cpp sum += d*w; sum_abs += (d & 1)*w; sum 2614 apps/traincascade/old_ml_tree.cpp RR = (sum_abs + sum)*0.5; sum 2615 apps/traincascade/old_ml_tree.cpp LR = (sum_abs - sum)*0.5; sum 2692 apps/traincascade/old_ml_tree.cpp int sum = _lc[idx] + d; sum 2694 apps/traincascade/old_ml_tree.cpp _lc[idx] = sum; _rc[idx] = sum_abs; sum 2699 apps/traincascade/old_ml_tree.cpp int sum = _lc[i]; sum 2701 apps/traincascade/old_ml_tree.cpp lc[i] = (sum_abs - sum) >> 1; sum 2702 apps/traincascade/old_ml_tree.cpp rc[i] = (sum_abs + sum) >> 1; sum 2716 apps/traincascade/old_ml_tree.cpp double sum = lc[idx] + d*w; sum 2718 apps/traincascade/old_ml_tree.cpp lc[idx] = sum; rc[idx] = sum_abs; sum 2723 apps/traincascade/old_ml_tree.cpp double sum = lc[i]; sum 2725 apps/traincascade/old_ml_tree.cpp lc[i] = (sum_abs - sum) * 0.5; sum 2726 apps/traincascade/old_ml_tree.cpp rc[i] = (sum_abs + sum) * 0.5; sum 2814 apps/traincascade/old_ml_tree.cpp double sum = 0; sum 2819 apps/traincascade/old_ml_tree.cpp sum += priors[k]; sum 2821 apps/traincascade/old_ml_tree.cpp sum = 1./sum; sum 2823 apps/traincascade/old_ml_tree.cpp priors[k] *= sum; sum 2844 apps/traincascade/old_ml_tree.cpp double sum_k = 0, sum = 0, max_val_k = 0; sum 2853 apps/traincascade/old_ml_tree.cpp sum += val; sum 2863 apps/traincascade/old_ml_tree.cpp node->cv_node_risk[j] = sum - max_val; sum 2882 apps/traincascade/old_ml_tree.cpp double sum = 0, sum2 = 0; sum 2894 apps/traincascade/old_ml_tree.cpp sum += t; sum 2924 apps/traincascade/old_ml_tree.cpp sum += cv_sum[j]; sum 2929 apps/traincascade/old_ml_tree.cpp node->node_risk = sum2 - (sum/n)*sum; sum 2930 apps/traincascade/old_ml_tree.cpp node->value = sum/n; sum 2934 apps/traincascade/old_ml_tree.cpp double s = cv_sum[j], si = sum - s; sum 30 apps/traincascade/traincascade_features.h float calcNormFactor( const cv::Mat& sum, const cv::Mat& sqSum ); sum 119 modules/calib3d/src/calibinit.cpp float sum = 0; sum 127 modules/calib3d/src/calibinit.cpp sum += sqrt(dx*dx + dy*dy); sum 133 modules/calib3d/src/calibinit.cpp return sum/MAX(n,1); sum 574 modules/calib3d/src/epnp.cpp double * ppAik = ppAkk, sum = 0; sum 577 modules/calib3d/src/epnp.cpp sum += *ppAik * ppAik[j - k]; sum 580 modules/calib3d/src/epnp.cpp double tau = sum / A1[k]; sum 617 modules/calib3d/src/epnp.cpp double * ppAij = pA + i * nc + (i + 1), sum = 0; sum 621 modules/calib3d/src/epnp.cpp sum += *ppAij * pX[j]; sum 624 modules/calib3d/src/epnp.cpp pX[i] = (pb[i] - sum) / A2[i]; sum 348 modules/calib3d/src/p3p.cpp double sum = fabs(A[1]) + fabs(A[2]) + fabs(A[3]) + fabs(A[6]) + fabs(A[7]) + fabs(A[11]); sum 350 modules/calib3d/src/p3p.cpp if (sum == 0.0) sum 353 modules/calib3d/src/p3p.cpp double tresh = (iter < 3) ? 0.2 * sum / 16. : 0.0; sum 121 modules/calib3d/src/quadsubpix.cpp double total_sum = sum(hist).val[0]; sum 153 modules/calib3d/src/stereobm.cpp int sum = vsum[0]*(wsz2 + 1); sum 155 modules/calib3d/src/stereobm.cpp sum += vsum[x]; sum 157 modules/calib3d/src/stereobm.cpp int val = ((curr[0]*5 + curr[1] + prev[0] + next[0])*scale_g - sum*scale_s) >> 10; sum 162 modules/calib3d/src/stereobm.cpp sum += vsum[x+wsz2] - vsum[x-wsz2-1]; sum 163 modules/calib3d/src/stereobm.cpp val = ((curr[x]*4 + curr[x-1] + curr[x+1] + prev[x] + next[x])*scale_g - sum*scale_s) >> 10; sum 167 modules/calib3d/src/stereobm.cpp sum += vsum[x+wsz2] - vsum[x-wsz2-1]; sum 168 modules/calib3d/src/stereobm.cpp val = ((curr[x]*5 + curr[x-1] + prev[x] + next[x])*scale_g - sum*scale_s) >> 10; sum 759 modules/calib3d/src/upnp.cpp double * ppAik = ppAkk, sum = 0; sum 762 modules/calib3d/src/upnp.cpp sum += *ppAik * ppAik[j - k]; sum 765 modules/calib3d/src/upnp.cpp double tau = sum / A1[k]; sum 802 modules/calib3d/src/upnp.cpp double * ppAij = pA + i * nc + (i + 1), sum = 0; sum 806 modules/calib3d/src/upnp.cpp sum += *ppAij * pX[j]; sum 809 modules/calib3d/src/upnp.cpp pX[i] = (pb[i] - sum) / A2[i]; sum 1364 modules/calib3d/test/test_cameracalibration.cpp double s = sum(utemp(roi))[0]; sum 99 modules/calib3d/test/test_reproject_image_to_3d.cpp double tmp, sum = 0; sum 107 modules/calib3d/test/test_reproject_image_to_3d.cpp sum += tmp * tmp; sum 110 modules/calib3d/test/test_reproject_image_to_3d.cpp return sqrt(sum)/(sqrt(nsum)+1.); sum 539 modules/core/include/opencv2/core.hpp CV_EXPORTS_AS(sumElems) Scalar sum(InputArray src); sum 157 modules/core/include/opencv2/core/cuda/filters.hpp work_type sum = VecTraits<work_type>::all(0); sum 165 modules/core/include/opencv2/core/cuda/filters.hpp sum = sum + w * src(__float2int_rd(cy), __float2int_rd(cx)); sum 170 modules/core/include/opencv2/core/cuda/filters.hpp work_type res = (!wsum)? VecTraits<work_type>::all(0) : sum / wsum; sum 413 modules/core/perf/opencl/perf_arithm.cpp OCL_TEST_CYCLE() result = cv::sum(src); sum 9 modules/core/perf/perf_stat.cpp PERF_TEST_P(Size_MatType, sum, TYPICAL_MATS) sum 19 modules/core/perf/perf_stat.cpp TEST_CYCLE() s = sum(arr); sum 2918 modules/core/src/matrix.cpp return cv::sum(m.diag()); sum 514 modules/core/src/stat.cpp __m128i sum = _mm_setzero_si128(); sum 519 modules/core/src/stat.cpp sum = _mm_add_epi32(sum, _mm_sad_epu8(_mm_sub_epi8(v_zero, _mm_cmpeq_epi8(r0, v_zero)), v_zero)); sum 521 modules/core/src/stat.cpp nz = i - _mm_cvtsi128_si32(_mm_add_epi32(sum, _mm_unpackhi_epi64(sum, sum))); sum 568 modules/core/src/stat.cpp __m128i sum = _mm_setzero_si128(); sum 573 modules/core/src/stat.cpp sum = _mm_add_epi32(sum, _mm_sad_epu8(_mm_sub_epi8(v_zero, _mm_cmpeq_epi16(r0, v_zero)), v_zero)); sum 576 modules/core/src/stat.cpp nz = i - (_mm_cvtsi128_si32(_mm_add_epi32(sum, _mm_unpackhi_epi64(sum, sum))) >> 1); sum 619 modules/core/src/stat.cpp __m128i sum = _mm_setzero_si128(); sum 624 modules/core/src/stat.cpp sum = _mm_add_epi32(sum, _mm_sad_epu8(_mm_sub_epi8(v_zero, _mm_cmpeq_epi32(r0, v_zero)), v_zero)); sum 627 modules/core/src/stat.cpp nz = i - (_mm_cvtsi128_si32(_mm_add_epi32(sum, _mm_unpackhi_epi64(sum, sum))) >> 2); sum 673 modules/core/src/stat.cpp __m128i sum = _mm_setzero_si128(); sum 678 modules/core/src/stat.cpp sum = _mm_add_epi32(sum, _mm_sad_epu8(_mm_sub_epi8(v_zero, _mm_castps_si128(_mm_cmpeq_ps(r0, v_zero_f))), v_zero)); sum 681 modules/core/src/stat.cpp nz = i - (_mm_cvtsi128_si32(_mm_add_epi32(sum, _mm_unpackhi_epi64(sum, sum))) >> 2); sum 753 modules/core/src/stat.cpp int operator () (const uchar * src0, const uchar * mask, int * sum, int * sqsum, int len, int cn) const sum 801 modules/core/src/stat.cpp sum[j] += ar[j + i]; sum 812 modules/core/src/stat.cpp int operator () (const schar * src0, const uchar * mask, int * sum, int * sqsum, int len, int cn) const sum 860 modules/core/src/stat.cpp sum[j] += ar[j + i]; sum 871 modules/core/src/stat.cpp static int sumsqr_(const T* src0, const uchar* mask, ST* sum, SQT* sqsum, int len, int cn ) sum 878 modules/core/src/stat.cpp int i = vop(src0, mask, sum, sqsum, len, cn), k = cn % 4; sum 883 modules/core/src/stat.cpp ST s0 = sum[0]; sum 890 modules/core/src/stat.cpp sum[0] = s0; sum 895 modules/core/src/stat.cpp ST s0 = sum[0], s1 = sum[1]; sum 903 modules/core/src/stat.cpp sum[0] = s0; sum[1] = s1; sum 908 modules/core/src/stat.cpp ST s0 = sum[0], s1 = sum[1], s2 = sum[2]; sum 917 modules/core/src/stat.cpp sum[0] = s0; sum[1] = s1; sum[2] = s2; sum 924 modules/core/src/stat.cpp ST s0 = sum[k], s1 = sum[k+1], s2 = sum[k+2], s3 = sum[k+3]; sum 936 modules/core/src/stat.cpp sum[k] = s0; sum[k+1] = s1; sum 937 modules/core/src/stat.cpp sum[k+2] = s2; sum[k+3] = s3; sum 948 modules/core/src/stat.cpp ST s0 = sum[0]; sum 957 modules/core/src/stat.cpp sum[0] = s0; sum 962 modules/core/src/stat.cpp ST s0 = sum[0], s1 = sum[1], s2 = sum[2]; sum 973 modules/core/src/stat.cpp sum[0] = s0; sum[1] = s1; sum[2] = s2; sum 984 modules/core/src/stat.cpp ST s = sum[k] + v; sum 986 modules/core/src/stat.cpp sum[k] = s; sqsum[k] = sq; sum 995 modules/core/src/stat.cpp static int sqsum8u( const uchar* src, const uchar* mask, int* sum, int* sqsum, int len, int cn ) sum 996 modules/core/src/stat.cpp { return sumsqr_(src, mask, sum, sqsum, len, cn); } sum 998 modules/core/src/stat.cpp static int sqsum8s( const schar* src, const uchar* mask, int* sum, int* sqsum, int len, int cn ) sum 999 modules/core/src/stat.cpp { return sumsqr_(src, mask, sum, sqsum, len, cn); } sum 1001 modules/core/src/stat.cpp static int sqsum16u( const ushort* src, const uchar* mask, int* sum, double* sqsum, int len, int cn ) sum 1002 modules/core/src/stat.cpp { return sumsqr_(src, mask, sum, sqsum, len, cn); } sum 1004 modules/core/src/stat.cpp static int sqsum16s( const short* src, const uchar* mask, int* sum, double* sqsum, int len, int cn ) sum 1005 modules/core/src/stat.cpp { return sumsqr_(src, mask, sum, sqsum, len, cn); } sum 1007 modules/core/src/stat.cpp static int sqsum32s( const int* src, const uchar* mask, double* sum, double* sqsum, int len, int cn ) sum 1008 modules/core/src/stat.cpp { return sumsqr_(src, mask, sum, sqsum, len, cn); } sum 1010 modules/core/src/stat.cpp static int sqsum32f( const float* src, const uchar* mask, double* sum, double* sqsum, int len, int cn ) sum 1011 modules/core/src/stat.cpp { return sumsqr_(src, mask, sum, sqsum, len, cn); } sum 1013 modules/core/src/stat.cpp static int sqsum64f( const double* src, const uchar* mask, double* sum, double* sqsum, int len, int cn ) sum 1014 modules/core/src/stat.cpp { return sumsqr_(src, mask, sum, sqsum, len, cn); } sum 1286 modules/core/src/stat.cpp return res = saturate_cast<int>(cv::sum(db.getMat(ACCESS_READ))[0]), true; sum 3795 modules/core/src/stat.cpp cv::Scalar sum = cv::sum(cv::cvarrToMat(srcarr, false, true, 1)); sum 3802 modules/core/src/stat.cpp sum = cv::Scalar(sum[coi-1]); sum 3805 modules/core/src/stat.cpp return sum; sum 899 modules/core/src/umatrix.cpp res = sum(db.getMat(ACCESS_READ))[0]; sum 964 modules/core/test/ocl/test_arithm.cpp OCL_OFF(cpures = cv::sum(src1_roi)); sum 965 modules/core/test/ocl/test_arithm.cpp OCL_ON(gpures = cv::sum(usrc1_roi)); sum 1138 modules/core/test/test_arithm.cpp dst.at<Scalar>(0,0) = cv::sum(src[0]); sum 452 modules/core/test/test_ds.cpp int sum = 0; sum 466 modules/core/test/test_ds.cpp CV_TS_SEQ_CHECK_CONDITION( sum == block->start_index - delta_idx && sum 470 modules/core/test/test_ds.cpp sum += block->count; sum 481 modules/core/test/test_ds.cpp CV_TS_SEQ_CHECK_CONDITION( seq->total == sum && sum == total, sum 61 modules/core/test/test_dxt.cpp Complexd sum(0,0); sum 68 modules/core/test/test_dxt.cpp sum.re += src->re*w[k].re - src->im*w[k].im; sum 69 modules/core/test/test_dxt.cpp sum.im += src->re*w[k].im + src->im*w[k].re; sum 74 modules/core/test/test_dxt.cpp dst->re = (float)(sum.re*scale); sum 75 modules/core/test/test_dxt.cpp dst->im = (float)(sum.im*scale); sum 83 modules/core/test/test_dxt.cpp Complexd sum(0,0); sum 90 modules/core/test/test_dxt.cpp sum.re += src->re*w[k].re - src->im*w[k].im; sum 91 modules/core/test/test_dxt.cpp sum.im += src->re*w[k].im + src->im*w[k].re; sum 96 modules/core/test/test_dxt.cpp dst->re = sum.re*scale; sum 97 modules/core/test/test_dxt.cpp dst->im = sum.im*scale; sum 184 modules/core/test/test_dxt.cpp double sum = 0; sum 187 modules/core/test/test_dxt.cpp sum += src[0]*w[j]; sum 189 modules/core/test/test_dxt.cpp dst[0] = (float)sum; sum 199 modules/core/test/test_dxt.cpp double sum = 0; sum 202 modules/core/test/test_dxt.cpp sum += src[0]*w[j]; sum 204 modules/core/test/test_dxt.cpp dst[0] = sum; sum 22 modules/core/test/test_mat.cpp void testReduce( const Mat& src, Mat& sum, Mat& avg, Mat& max, Mat& min, int dim ) sum 27 modules/core/test/test_mat.cpp sum.create( 1, src.cols, CV_64FC1 ); sum 33 modules/core/test/test_mat.cpp sum.create( src.rows, 1, CV_64FC1 ); sum 37 modules/core/test/test_mat.cpp sum.setTo(Scalar(0)); sum 42 modules/core/test/test_mat.cpp Mat_<double>& sum_ = (Mat_<double>&)sum; sum 70 modules/core/test/test_mat.cpp sum.convertTo( avg, CV_64FC1 ); sum 168 modules/core/test/test_mat.cpp Mat src, sum, avg, max, min; sum 174 modules/core/test/test_mat.cpp testReduce<uchar>( src, sum, avg, max, min, dim ); sum 176 modules/core/test/test_mat.cpp testReduce<char>( src, sum, avg, max, min, dim ); sum 178 modules/core/test/test_mat.cpp testReduce<unsigned short int>( src, sum, avg, max, min, dim ); sum 180 modules/core/test/test_mat.cpp testReduce<short int>( src, sum, avg, max, min, dim ); sum 182 modules/core/test/test_mat.cpp testReduce<int>( src, sum, avg, max, min, dim ); sum 184 modules/core/test/test_mat.cpp testReduce<float>( src, sum, avg, max, min, dim ); sum 186 modules/core/test/test_mat.cpp testReduce<double>( src, sum, avg, max, min, dim ); sum 191 modules/core/test/test_mat.cpp tempCode = checkOp( src, dstType, CV_REDUCE_SUM, sum, dim ); sum 1235 modules/core/test/test_mat.cpp ASSERT_EQ(sum(tmpDst)[0], 124*100*100); sum 2156 modules/core/test/test_math.cpp double threshold = cv::sum(w)[0]*(DBL_EPSILON*2);//(is_float ? FLT_EPSILON*10 : DBL_EPSILON*2); sum 2779 modules/core/test/test_math.cpp cv::Scalar s = cv::sum(diff); sum 2784 modules/core/test/test_math.cpp cv::Scalar sDiff = cv::sum(meanDiff); sum 2814 modules/core/test/test_math.cpp cv::Scalar s = cv::sum(diff); sum 2819 modules/core/test/test_math.cpp cv::Scalar sDiff = cv::sum(meanDiff); sum 124 modules/core/test/test_operations.cpp double s = sum(Mat(m).reshape(1))[0]; sum 650 modules/core/test/test_operations.cpp int sum = 0; sum 652 modules/core/test/test_operations.cpp sum+=*beg; sum 655 modules/core/test/test_operations.cpp sum-=*cbeg; sum 657 modules/core/test/test_operations.cpp if (sum != 0) throw test_excep(); sum 1190 modules/core/test/test_operations.cpp int sum0 = 0, sum = 0; sum 1221 modules/core/test/test_operations.cpp sum += *it; sum 1222 modules/core/test/test_operations.cpp CV_Assert( k == nz0 && sum == sum0 ); sum 44 modules/core/test/test_rand.cpp double sum = 0; sum 46 modules/core/test/test_rand.cpp sum += H[i]; sum 47 modules/core/test/test_rand.cpp CV_Assert( fabs(1./sum - scale) < FLT_EPSILON ); sum 553 modules/cudaarithm/include/opencv2/cudaarithm.hpp CV_EXPORTS Scalar sum(InputArray src, InputArray mask = noArray()); sum 699 modules/cudaarithm/include/opencv2/cudaarithm.hpp CV_EXPORTS void integral(InputArray src, OutputArray sum, Stream& stream = Stream::Null()); sum 150 modules/cudaarithm/perf/perf_reductions.cpp TEST_CYCLE() gpu_dst = cv::cuda::sum(d_src); sum 158 modules/cudaarithm/perf/perf_reductions.cpp TEST_CYCLE() cpu_dst = cv::sum(src); sum 186 modules/cudaarithm/test/test_reductions.cpp cv::Scalar sum = cv::Scalar::all(0); sum 193 modules/cudaarithm/test/test_reductions.cpp sum[c] += std::abs(src.at<T>(y, x * cn + c)); sum 197 modules/cudaarithm/test/test_reductions.cpp return sum; sum 223 modules/cudaarithm/test/test_reductions.cpp cv::Scalar sum = cv::Scalar::all(0); sum 232 modules/cudaarithm/test/test_reductions.cpp sum[c] += val * val; sum 237 modules/cudaarithm/test/test_reductions.cpp return sum; sum 283 modules/cudaarithm/test/test_reductions.cpp cv::Scalar val = cv::cuda::sum(loadMat(src, useRoi)); sum 285 modules/cudaarithm/test/test_reductions.cpp cv::Scalar val_gold = cv::sum(src); sum 303 modules/cudaarithm/test/test_reductions.cpp cv::Scalar val_gold = cv::sum(src); sum 134 modules/cudafilters/src/cuda/column_filter.hpp sum_t sum = VecTraits<sum_t>::all(0); sum 138 modules/cudafilters/src/cuda/column_filter.hpp sum = sum + smem[threadIdx.y + HALO_SIZE * BLOCK_DIM_Y + j * BLOCK_DIM_Y - anchor + k][threadIdx.x] * c_kernel[k]; sum 140 modules/cudafilters/src/cuda/column_filter.hpp dst(y, x) = saturate_cast<D>(sum); sum 134 modules/cudafilters/src/cuda/row_filter.hpp sum_t sum = VecTraits<sum_t>::all(0); sum 138 modules/cudafilters/src/cuda/row_filter.hpp sum = sum + smem[threadIdx.y][threadIdx.x + HALO_SIZE * BLOCK_DIM_X + j * BLOCK_DIM_X - anchor + k] * c_kernel[k]; sum 140 modules/cudafilters/src/cuda/row_filter.hpp dst(y, x) = saturate_cast<D>(sum); sum 445 modules/cudaimgproc/src/match_template.cpp int templ_sum = (int) cuda::sum(templ)[0]; sum 457 modules/cudaimgproc/src/match_template.cpp Scalar templ_sum = cuda::sum(templ); sum 530 modules/cudaimgproc/src/match_template.cpp int templ_sum = (int) cuda::sum(templ)[0]; sum 549 modules/cudaimgproc/src/match_template.cpp Scalar templ_sum = cuda::sum(templ); sum 184 modules/cudalegacy/src/fgd.cpp Vec3d sum(0.0, 0.0, 0.0); sum 190 modules/cudalegacy/src/fgd.cpp sum[0] += static_cast<double>(j) * hist[j]; sum 194 modules/cudalegacy/src/fgd.cpp sum[1] += static_cast<double>(j) * hist[j + 256]; sum 198 modules/cudalegacy/src/fgd.cpp sum[2] += static_cast<double>(j) * hist[j + 512]; sum 208 modules/cudalegacy/src/fgd.cpp sum[0] / count[0], sum 209 modules/cudalegacy/src/fgd.cpp sum[1] / count[1], sum 210 modules/cudalegacy/src/fgd.cpp sum[2] / count[2] sum 358 modules/cudaoptflow/src/tvl1flow.cpp error = cuda::sum(diff, norm_buf)[0]; sum 112 modules/cudawarping/test/interpolation.hpp float sum = 0.0f; sum 120 modules/cudawarping/test/interpolation.hpp sum += w * readVal<T>(src, (int) floorf(cy), (int) floorf(cx), c, border_type, borderVal); sum 125 modules/cudawarping/test/interpolation.hpp float res = (!wsum)? 0 : sum / wsum; sum 207 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp int sum = result[15]; sum 218 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp const int n = shfl_up(sum, i, 32); sum 226 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp sum += n; sum 440 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp T sum = (tidx < cols) && (y < rows) ? *p : 0; sum 442 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp sums[threadIdx.x][threadIdx.y] = sum; sum 466 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp sum += sums[threadIdx.x][threadIdx.y - 1]; sum 468 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp sum += stepSum; sum 475 modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp *p = sum; sum 78 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp work_type sum; sum 80 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = 0.0625f * src(src_y - 2, x); sum 81 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.25f * src(src_y - 1, x); sum 82 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.375f * src(src_y , x); sum 83 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.25f * src(src_y + 1, x); sum 84 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.0625f * src(src_y + 2, x); sum 86 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp smem[2 + threadIdx.x] = sum; sum 93 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp work_type sum; sum 95 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = 0.0625f * src(src_y - 2, left_x); sum 96 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.25f * src(src_y - 1, left_x); sum 97 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.375f * src(src_y , left_x); sum 98 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.25f * src(src_y + 1, left_x); sum 99 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.0625f * src(src_y + 2, left_x); sum 101 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp smem[threadIdx.x] = sum; sum 108 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp work_type sum; sum 110 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = 0.0625f * src(src_y - 2, right_x); sum 111 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.25f * src(src_y - 1, right_x); sum 112 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.375f * src(src_y , right_x); sum 113 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.25f * src(src_y + 1, right_x); sum 114 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.0625f * src(src_y + 2, right_x); sum 116 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp smem[4 + threadIdx.x] = sum; sum 122 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp work_type sum; sum 124 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = 0.0625f * src(Brd::idx_low(src_y - 2, src_rows) , Brd::idx_high(x, src_cols)); sum 125 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.25f * src(Brd::idx_low(src_y - 1, src_rows) , Brd::idx_high(x, src_cols)); sum 126 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.375f * src(src_y , Brd::idx_high(x, src_cols)); sum 127 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.25f * src(Brd::idx_high(src_y + 1, src_rows), Brd::idx_high(x, src_cols)); sum 128 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.0625f * src(Brd::idx_high(src_y + 2, src_rows), Brd::idx_high(x, src_cols)); sum 130 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp smem[2 + threadIdx.x] = sum; sum 137 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp work_type sum; sum 139 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = 0.0625f * src(Brd::idx_low(src_y - 2, src_rows) , Brd::idx_low(Brd::idx_high(left_x, src_cols), src_cols)); sum 140 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.25f * src(Brd::idx_low(src_y - 1, src_rows) , Brd::idx_low(Brd::idx_high(left_x, src_cols), src_cols)); sum 141 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.375f * src(src_y , Brd::idx_low(Brd::idx_high(left_x, src_cols), src_cols)); sum 142 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.25f * src(Brd::idx_high(src_y + 1, src_rows), Brd::idx_low(Brd::idx_high(left_x, src_cols), src_cols)); sum 143 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.0625f * src(Brd::idx_high(src_y + 2, src_rows), Brd::idx_low(Brd::idx_high(left_x, src_cols), src_cols)); sum 145 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp smem[threadIdx.x] = sum; sum 152 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp work_type sum; sum 154 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = 0.0625f * src(Brd::idx_low(src_y - 2, src_rows) , Brd::idx_high(right_x, src_cols)); sum 155 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.25f * src(Brd::idx_low(src_y - 1, src_rows) , Brd::idx_high(right_x, src_cols)); sum 156 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.375f * src(src_y , Brd::idx_high(right_x, src_cols)); sum 157 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.25f * src(Brd::idx_high(src_y + 1, src_rows), Brd::idx_high(right_x, src_cols)); sum 158 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.0625f * src(Brd::idx_high(src_y + 2, src_rows), Brd::idx_high(right_x, src_cols)); sum 160 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp smem[4 + threadIdx.x] = sum; sum 170 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp work_type sum; sum 172 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = 0.0625f * smem[2 + tid2 - 2]; sum 173 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.25f * smem[2 + tid2 - 1]; sum 174 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.375f * smem[2 + tid2 ]; sum 175 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.25f * smem[2 + tid2 + 1]; sum 176 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp sum = sum + 0.0625f * smem[2 + tid2 + 2]; sum 181 modules/cudev/include/opencv2/cudev/grid/detail/pyr_down.hpp dst(y, dst_x) = saturate_cast<DstType>(sum); sum 90 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp work_type sum = VecTraits<work_type>::all(0); sum 99 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + (evenFlag * 0.0625f) * s_srcPatch[1 + (threadIdx.y >> 1)][1 + ((tidx - 2) >> 1)]; sum 100 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + ( oddFlag * 0.25f ) * s_srcPatch[1 + (threadIdx.y >> 1)][1 + ((tidx - 1) >> 1)]; sum 101 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + (evenFlag * 0.375f ) * s_srcPatch[1 + (threadIdx.y >> 1)][1 + ((tidx ) >> 1)]; sum 102 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + ( oddFlag * 0.25f ) * s_srcPatch[1 + (threadIdx.y >> 1)][1 + ((tidx + 1) >> 1)]; sum 103 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + (evenFlag * 0.0625f) * s_srcPatch[1 + (threadIdx.y >> 1)][1 + ((tidx + 2) >> 1)]; sum 106 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp s_dstPatch[2 + threadIdx.y][threadIdx.x] = sum; sum 110 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = VecTraits<work_type>::all(0); sum 114 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + (evenFlag * 0.0625f) * s_srcPatch[0][1 + ((tidx - 2) >> 1)]; sum 115 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + ( oddFlag * 0.25f ) * s_srcPatch[0][1 + ((tidx - 1) >> 1)]; sum 116 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + (evenFlag * 0.375f ) * s_srcPatch[0][1 + ((tidx ) >> 1)]; sum 117 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + ( oddFlag * 0.25f ) * s_srcPatch[0][1 + ((tidx + 1) >> 1)]; sum 118 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + (evenFlag * 0.0625f) * s_srcPatch[0][1 + ((tidx + 2) >> 1)]; sum 121 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp s_dstPatch[threadIdx.y][threadIdx.x] = sum; sum 126 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = VecTraits<work_type>::all(0); sum 130 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + (evenFlag * 0.0625f) * s_srcPatch[9][1 + ((tidx - 2) >> 1)]; sum 131 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + ( oddFlag * 0.25f ) * s_srcPatch[9][1 + ((tidx - 1) >> 1)]; sum 132 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + (evenFlag * 0.375f ) * s_srcPatch[9][1 + ((tidx ) >> 1)]; sum 133 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + ( oddFlag * 0.25f ) * s_srcPatch[9][1 + ((tidx + 1) >> 1)]; sum 134 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + (evenFlag * 0.0625f) * s_srcPatch[9][1 + ((tidx + 2) >> 1)]; sum 137 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp s_dstPatch[4 + threadIdx.y][threadIdx.x] = sum; sum 142 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = VecTraits<work_type>::all(0); sum 146 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + 0.0625f * s_dstPatch[2 + tidy - 2][threadIdx.x]; sum 147 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + 0.25f * s_dstPatch[2 + tidy - 1][threadIdx.x]; sum 148 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + 0.375f * s_dstPatch[2 + tidy ][threadIdx.x]; sum 149 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + 0.25f * s_dstPatch[2 + tidy + 1][threadIdx.x]; sum 150 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp sum = sum + 0.0625f * s_dstPatch[2 + tidy + 2][threadIdx.x]; sum 153 modules/cudev/include/opencv2/cudev/grid/detail/pyr_up.hpp dst(y, x) = saturate_cast<DstType>(4.0f * sum); sum 264 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp work_type sum; sum 268 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp sum = VecTraits<work_type>::all(0); sum 273 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp sum = sum + saturate_cast<work_type>(srcVal); sum 281 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp blockReduce<BLOCK_SIZE>(Unroll<cn>::template smem<BLOCK_SIZE>(smem), Unroll<cn>::res(sum), tid, Unroll<cn>::op(plus<work_elem_type>())); sum 284 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp AtomicUnroll<work_elem_type, cn>::add(result, sum); sum 78 modules/cudev/include/opencv2/cudev/grid/reduce.hpp grid_reduce_detail::sum<Policy>(shrinkPtr(src), sum 98 modules/cudev/include/opencv2/cudev/grid/reduce.hpp grid_reduce_detail::sum<Policy>(shrinkPtr(src), sum 264 modules/cudev/include/opencv2/cudev/grid/reduce.hpp grid_reduce_detail::sum<Policy>(shrinkPtr(transformPtr(src, bind2nd(ne_op, zero))), sum 284 modules/cudev/include/opencv2/cudev/grid/reduce.hpp grid_reduce_detail::sum<Policy>(shrinkPtr(transformPtr(src, bind2nd(ne_op, zero))), sum 192 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp work_type sum = VecTraits<work_type>::all(0); sum 202 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp sum = sum + static_cast<work_elem_type>(w) * src_reg; sum 207 modules/cudev/include/opencv2/cudev/ptr2d/interpolation.hpp work_type res = (wsum > numeric_limits<float>::epsilon()) ? VecTraits<work_type>::all(0) : sum / static_cast<work_elem_type>(wsum); sum 653 modules/flann/include/opencv2/flann/dist.h ResultType sum, diff; sum 657 modules/flann/include/opencv2/flann/dist.h sum = (ResultType)(*a + *b); sum 658 modules/flann/include/opencv2/flann/dist.h if (sum>0) { sum 660 modules/flann/include/opencv2/flann/dist.h result += diff*diff/sum; sum 679 modules/flann/include/opencv2/flann/dist.h ResultType sum, diff; sum 681 modules/flann/include/opencv2/flann/dist.h sum = (ResultType)(a+b); sum 682 modules/flann/include/opencv2/flann/dist.h if (sum>0) { sum 684 modules/flann/include/opencv2/flann/dist.h result = diff*diff/sum; sum 1038 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType sum = 0; sum 1043 modules/flann/include/opencv2/flann/kmeans_index.h sum += t*(q[i]-(c[i]+p[i])/2); sum 1047 modules/flann/include/opencv2/flann/kmeans_index.h return sum*sum/sum2; sum 572 modules/hal/include/opencv2/hal/intrin_neon.hpp OPENCV_HAL_IMPL_NEON_REDUCE_OP_4(v_uint32x4, unsigned, sum, OPENCV_HAL_ADD) sum 575 modules/hal/include/opencv2/hal/intrin_neon.hpp OPENCV_HAL_IMPL_NEON_REDUCE_OP_4(v_int32x4, int, sum, OPENCV_HAL_ADD) sum 578 modules/hal/include/opencv2/hal/intrin_neon.hpp OPENCV_HAL_IMPL_NEON_REDUCE_OP_4(v_float32x4, float, sum, OPENCV_HAL_ADD) sum 1002 modules/hal/include/opencv2/hal/intrin_sse.hpp OPENCV_HAL_IMPL_SSE_REDUCE_OP_4(v_uint32x4, unsigned, sum, OPENCV_HAL_ADD) sum 1005 modules/hal/include/opencv2/hal/intrin_sse.hpp OPENCV_HAL_IMPL_SSE_REDUCE_OP_4(v_int32x4, int, sum, OPENCV_HAL_ADD) sum 1008 modules/hal/include/opencv2/hal/intrin_sse.hpp OPENCV_HAL_IMPL_SSE_REDUCE_OP_4(v_float32x4, float, sum, OPENCV_HAL_ADD) sum 62 modules/imgcodecs/test/test_grfmt.cpp const Scalar s = sum(diff); sum 2239 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS_W void integral( InputArray src, OutputArray sum, int sdepth = -1 ); sum 2242 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS_AS(integral2) void integral( InputArray src, OutputArray sum, sum 2279 modules/imgproc/include/opencv2/imgproc.hpp CV_EXPORTS_AS(integral3) void integral( InputArray src, OutputArray sum, sum 61 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(void) cvAcc( const CvArr* image, CvArr* sum, sum 137 modules/imgproc/include/opencv2/imgproc/imgproc_c.h CVAPI(void) cvIntegral( const CvArr* image, CvArr* sum, sum 1192 modules/imgproc/misc/java/test/ImgprocTest.java Mat sum = new Mat(); sum 1205 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.integral2(src, sum, sqsum); sum 1207 modules/imgproc/misc/java/test/ImgprocTest.java assertMatEqual(expSum, sum, EPS); sum 1215 modules/imgproc/misc/java/test/ImgprocTest.java Mat sum = new Mat(); sum 1228 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.integral2(src, sum, sqsum, CvType.CV_64F, CvType.CV_64F); sum 1230 modules/imgproc/misc/java/test/ImgprocTest.java assertMatEqual(expSum, sum, EPS); sum 1239 modules/imgproc/misc/java/test/ImgprocTest.java Mat sum = new Mat(); sum 1252 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.integral3(src, sum, sqsum, tilted); sum 1254 modules/imgproc/misc/java/test/ImgprocTest.java assertMatEqual(expSum, sum, EPS); sum 1264 modules/imgproc/misc/java/test/ImgprocTest.java Mat sum = new Mat(); sum 1277 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.integral3(src, sum, sqsum, tilted, CvType.CV_64F, CvType.CV_64F); sum 1279 modules/imgproc/misc/java/test/ImgprocTest.java assertMatEqual(expSum, sum, EPS); sum 245 modules/imgproc/perf/opencl/perf_imgproc.cpp UMat src(srcSize, CV_8UC1), sum(srcSize + Size(1, 1), ddepth), sqsum(srcSize + Size(1, 1), CV_32F); sum 246 modules/imgproc/perf/opencl/perf_imgproc.cpp declare.in(src, WARMUP_RNG).out(sum, sqsum); sum 248 modules/imgproc/perf/opencl/perf_imgproc.cpp OCL_TEST_CYCLE() cv::integral(src, sum, sqsum, ddepth, CV_32F); sum 250 modules/imgproc/perf/opencl/perf_imgproc.cpp SANITY_CHECK(sum, 2e-4, ERROR_RELATIVE); sum 35 modules/imgproc/perf/perf_filter2d.cpp double s = fabs( sum(kernel)[0] ); sum 25 modules/imgproc/perf/perf_integral.cpp Mat sum(sz, sdepth); sum 27 modules/imgproc/perf/perf_integral.cpp declare.in(src, WARMUP_RNG).out(sum); sum 29 modules/imgproc/perf/perf_integral.cpp TEST_CYCLE() integral(src, sum, sdepth); sum 31 modules/imgproc/perf/perf_integral.cpp SANITY_CHECK(sum, 1e-6); sum 47 modules/imgproc/perf/perf_integral.cpp Mat sum(sz, sdepth); sum 50 modules/imgproc/perf/perf_integral.cpp declare.in(src, WARMUP_RNG).out(sum, sqsum); sum 53 modules/imgproc/perf/perf_integral.cpp TEST_CYCLE() integral(src, sum, sqsum, sdepth); sum 55 modules/imgproc/perf/perf_integral.cpp SANITY_CHECK(sum, 1e-6); sum 72 modules/imgproc/perf/perf_integral.cpp Mat sum(sz, sdepth); sum 76 modules/imgproc/perf/perf_integral.cpp declare.in(src, WARMUP_RNG).out(sum, sqsum, tilted); sum 79 modules/imgproc/perf/perf_integral.cpp TEST_CYCLE() integral(src, sum, sqsum, tilted, sdepth); sum 81 modules/imgproc/perf/perf_integral.cpp SANITY_CHECK(sum, 1e-6); sum 221 modules/imgproc/src/clahe.cpp int sum = 0; sum 224 modules/imgproc/src/clahe.cpp sum += tileHist[i]; sum 225 modules/imgproc/src/clahe.cpp tileLut[i] = cv::saturate_cast<T>(sum * lutScale_); sum 435 modules/imgproc/src/filter.cpp double sum = 0; sum 453 modules/imgproc/src/filter.cpp sum += a; sum 456 modules/imgproc/src/filter.cpp if( fabs(sum - 1) > FLT_EPSILON*(fabs(sum) + 1) ) sum 2725 modules/imgproc/src/histogram.cpp double sum = 0; sum 2734 modules/imgproc/src/histogram.cpp sum = cvSum( &mat ).val[0]; sum 2735 modules/imgproc/src/histogram.cpp if( fabs(sum) < DBL_EPSILON ) sum 2736 modules/imgproc/src/histogram.cpp sum = 1; sum 2737 modules/imgproc/src/histogram.cpp cvScale( &mat, &mat, factor/sum, 0 ); sum 2749 modules/imgproc/src/histogram.cpp sum += *(float*)CV_NODE_VAL(mat,node); sum 2752 modules/imgproc/src/histogram.cpp if( fabs(sum) < DBL_EPSILON ) sum 2753 modules/imgproc/src/histogram.cpp sum = 1; sum 2754 modules/imgproc/src/histogram.cpp scale = (float)(factor/sum); sum 3662 modules/imgproc/src/histogram.cpp int sum = 0; sum 3666 modules/imgproc/src/histogram.cpp sum += hist[i]; sum 3667 modules/imgproc/src/histogram.cpp lut[i] = saturate_cast<uchar>(sum * scale); sum 178 modules/imgproc/src/imgwarp.cpp float sum = 0; sum 184 modules/imgproc/src/imgwarp.cpp sum += coeffs[i]; sum 187 modules/imgproc/src/imgwarp.cpp sum = 1.f/sum; sum 189 modules/imgproc/src/imgwarp.cpp coeffs[i] *= sum; sum 2449 modules/imgproc/src/imgwarp.cpp WT sum = 0; sum 2453 modules/imgproc/src/imgwarp.cpp sum += S[ofs[k]] + S[ofs[k+1]] + S[ofs[k+2]] + S[ofs[k+3]]; sum 2456 modules/imgproc/src/imgwarp.cpp sum += S[ofs[k]]; sum 2458 modules/imgproc/src/imgwarp.cpp D[dx] = saturate_cast<T>(sum * scale); sum 2463 modules/imgproc/src/imgwarp.cpp WT sum = 0; sum 2477 modules/imgproc/src/imgwarp.cpp sum += S[sx]; sum 2482 modules/imgproc/src/imgwarp.cpp D[dx] = saturate_cast<T>((float)sum/count); sum 2537 modules/imgproc/src/imgwarp.cpp WT *buf = _buffer, *sum = buf + dsize.width; sum 2541 modules/imgproc/src/imgwarp.cpp sum[dx] = (WT)0; sum 2616 modules/imgproc/src/imgwarp.cpp D[dx] = saturate_cast<T>(sum[dx]); sum 2617 modules/imgproc/src/imgwarp.cpp sum[dx] = beta*buf[dx]; sum 2624 modules/imgproc/src/imgwarp.cpp sum[dx] += beta*buf[dx]; sum 2631 modules/imgproc/src/imgwarp.cpp D[dx] = saturate_cast<T>(sum[dx]); sum 4056 modules/imgproc/src/imgwarp.cpp WT sum = S[0]*w[0] + S[cn]*w[1] + S[cn*2]*w[2] + S[cn*3]*w[3]; sum 4058 modules/imgproc/src/imgwarp.cpp sum += S[0]*w[4] + S[cn]*w[5] + S[cn*2]*w[6] + S[cn*3]*w[7]; sum 4060 modules/imgproc/src/imgwarp.cpp sum += S[0]*w[8] + S[cn]*w[9] + S[cn*2]*w[10] + S[cn*3]*w[11]; sum 4062 modules/imgproc/src/imgwarp.cpp sum += S[0]*w[12] + S[cn]*w[13] + S[cn*2]*w[14] + S[cn*3]*w[15]; sum 4064 modules/imgproc/src/imgwarp.cpp D[k] = castOp(sum); sum 4092 modules/imgproc/src/imgwarp.cpp WT cv = cval[k], sum = cv*ONE; sum 4100 modules/imgproc/src/imgwarp.cpp sum += (S[x[0]] - cv)*w[0]; sum 4102 modules/imgproc/src/imgwarp.cpp sum += (S[x[1]] - cv)*w[1]; sum 4104 modules/imgproc/src/imgwarp.cpp sum += (S[x[2]] - cv)*w[2]; sum 4106 modules/imgproc/src/imgwarp.cpp sum += (S[x[3]] - cv)*w[3]; sum 4108 modules/imgproc/src/imgwarp.cpp D[k] = castOp(sum); sum 4161 modules/imgproc/src/imgwarp.cpp WT sum = 0; sum 4163 modules/imgproc/src/imgwarp.cpp sum += S[0]*w[0] + S[cn]*w[1] + S[cn*2]*w[2] + S[cn*3]*w[3] + sum 4167 modules/imgproc/src/imgwarp.cpp D[k] = castOp(sum); sum 4195 modules/imgproc/src/imgwarp.cpp WT cv = cval[k], sum = cv*ONE; sum 4203 modules/imgproc/src/imgwarp.cpp sum += (S1[x[0]] - cv)*w[0]; sum 4205 modules/imgproc/src/imgwarp.cpp sum += (S1[x[1]] - cv)*w[1]; sum 4207 modules/imgproc/src/imgwarp.cpp sum += (S1[x[2]] - cv)*w[2]; sum 4209 modules/imgproc/src/imgwarp.cpp sum += (S1[x[3]] - cv)*w[3]; sum 4211 modules/imgproc/src/imgwarp.cpp sum += (S1[x[4]] - cv)*w[4]; sum 4213 modules/imgproc/src/imgwarp.cpp sum += (S1[x[5]] - cv)*w[5]; sum 4215 modules/imgproc/src/imgwarp.cpp sum += (S1[x[6]] - cv)*w[6]; sum 4217 modules/imgproc/src/imgwarp.cpp sum += (S1[x[7]] - cv)*w[7]; sum 4219 modules/imgproc/src/imgwarp.cpp D[k] = castOp(sum); sum 691 modules/imgproc/src/lsd.cpp double x = 0, y = 0, sum = 0; sum 698 modules/imgproc/src/lsd.cpp sum += weight; sum 702 modules/imgproc/src/lsd.cpp CV_Assert(sum > 0); sum 704 modules/imgproc/src/lsd.cpp x /= sum; sum 705 modules/imgproc/src/lsd.cpp y /= sum; sum 795 modules/imgproc/src/lsd.cpp double sum = 0, s_sum = 0; sum 805 modules/imgproc/src/lsd.cpp sum += ang_d; sum 810 modules/imgproc/src/lsd.cpp double mean_angle = sum / double(n); sum 812 modules/imgproc/src/lsd.cpp double tau = 2.0 * sqrt((s_sum - 2.0 * mean_angle * sum) / double(n) + mean_angle * mean_angle); sum 127 modules/imgproc/src/smooth.cpp if( width != (int)sum.size() ) sum 129 modules/imgproc/src/smooth.cpp sum.resize(width); sum 133 modules/imgproc/src/smooth.cpp SUM = &sum[0]; sum 204 modules/imgproc/src/smooth.cpp std::vector<ST> sum; sum 234 modules/imgproc/src/smooth.cpp if( width != (int)sum.size() ) sum 236 modules/imgproc/src/smooth.cpp sum.resize(width); sum 240 modules/imgproc/src/smooth.cpp SUM = &sum[0]; sum 380 modules/imgproc/src/smooth.cpp std::vector<int> sum; sum 409 modules/imgproc/src/smooth.cpp if( width != (int)sum.size() ) sum 411 modules/imgproc/src/smooth.cpp sum.resize(width); sum 414 modules/imgproc/src/smooth.cpp SUM = &sum[0]; sum 548 modules/imgproc/src/smooth.cpp std::vector<int> sum; sum 577 modules/imgproc/src/smooth.cpp if( width != (int)sum.size() ) sum 579 modules/imgproc/src/smooth.cpp sum.resize(width); sum 582 modules/imgproc/src/smooth.cpp SUM = &sum[0]; sum 714 modules/imgproc/src/smooth.cpp std::vector<int> sum; sum 743 modules/imgproc/src/smooth.cpp if( width != (int)sum.size() ) sum 745 modules/imgproc/src/smooth.cpp sum.resize(width); sum 748 modules/imgproc/src/smooth.cpp SUM = &sum[0]; sum 863 modules/imgproc/src/smooth.cpp std::vector<int> sum; sum 893 modules/imgproc/src/smooth.cpp if( width != (int)sum.size() ) sum 895 modules/imgproc/src/smooth.cpp sum.resize(width); sum 899 modules/imgproc/src/smooth.cpp SUM = &sum[0]; sum 1024 modules/imgproc/src/smooth.cpp std::vector<int> sum; sum 1556 modules/imgproc/src/smooth.cpp double sum = 0; sum 1566 modules/imgproc/src/smooth.cpp sum += cf[i]; sum 1571 modules/imgproc/src/smooth.cpp sum += cd[i]; sum 1575 modules/imgproc/src/smooth.cpp sum = 1./sum; sum 1579 modules/imgproc/src/smooth.cpp cf[i] = (float)(cf[i]*sum); sum 1581 modules/imgproc/src/smooth.cpp cd[i] *= sum; sum 1899 modules/imgproc/src/smooth.cpp int t = 2*r*r + 2*r, b, sum = 0; sum 1907 modules/imgproc/src/smooth.cpp sum += H[c].coarse[k]; sum 1908 modules/imgproc/src/smooth.cpp if ( sum > t ) sum 1910 modules/imgproc/src/smooth.cpp sum -= H[c].coarse[k]; sum 1944 modules/imgproc/src/smooth.cpp sum += segment[b]; sum 1945 modules/imgproc/src/smooth.cpp if ( sum > t ) sum 1962 modules/imgproc/src/smooth.cpp int t = 2*r*r + 2*r, b, sum = 0; sum 1970 modules/imgproc/src/smooth.cpp sum += H[c].coarse[k]; sum 1971 modules/imgproc/src/smooth.cpp if ( sum > t ) sum 1973 modules/imgproc/src/smooth.cpp sum -= H[c].coarse[k]; sum 2007 modules/imgproc/src/smooth.cpp sum += segment[b]; sum 2008 modules/imgproc/src/smooth.cpp if ( sum > t ) sum 2786 modules/imgproc/src/smooth.cpp float sum = 0, wsum = 0; sum 2813 modules/imgproc/src/smooth.cpp sum += bufSum[1]; sum 2822 modules/imgproc/src/smooth.cpp sum += val*w; sum 2826 modules/imgproc/src/smooth.cpp dptr[j] = (uchar)cvRound(sum/wsum); sum 3168 modules/imgproc/src/smooth.cpp float sum = 0, wsum = 0; sum 3204 modules/imgproc/src/smooth.cpp sum = bufSum32[1]; sum 3216 modules/imgproc/src/smooth.cpp sum += val*w; sum 3219 modules/imgproc/src/smooth.cpp dptr[j] = (float)(sum/wsum); sum 3233 modules/imgproc/src/smooth.cpp __m128 sum = _mm_setzero_ps(); sum 3278 modules/imgproc/src/smooth.cpp sum = _mm_add_ps(sum, _w); sum 3280 modules/imgproc/src/smooth.cpp _mm_store_ps(bufSum32, sum); sum 78 modules/imgproc/src/sumpixels.cpp int * sum, size_t _sumstep, sum 87 modules/imgproc/src/sumpixels.cpp memset(sum, 0, (size.width + 1) * sizeof(int)); sum 96 modules/imgproc/src/sumpixels.cpp int * prev_sum_row = (int *)((uchar *)sum + _sumstep * i) + 1; sum 97 modules/imgproc/src/sumpixels.cpp int * sum_row = (int *)((uchar *)sum + _sumstep * (i + 1)) + 1; sum 148 modules/imgproc/src/sumpixels.cpp void integral_( const T* src, size_t _srcstep, ST* sum, size_t _sumstep, sum 155 modules/imgproc/src/sumpixels.cpp sum, _sumstep, sum 168 modules/imgproc/src/sumpixels.cpp memset( sum, 0, (size.width+cn)*sizeof(sum[0])); sum 169 modules/imgproc/src/sumpixels.cpp sum += sumstep + cn; sum 185 modules/imgproc/src/sumpixels.cpp for( y = 0; y < size.height; y++, src += srcstep - cn, sum += sumstep - cn ) sum 187 modules/imgproc/src/sumpixels.cpp for( k = 0; k < cn; k++, src++, sum++ ) sum 189 modules/imgproc/src/sumpixels.cpp ST s = sum[-cn] = 0; sum 193 modules/imgproc/src/sumpixels.cpp sum[x] = sum[x - sumstep] + s; sum 201 modules/imgproc/src/sumpixels.cpp sum += sumstep - cn, sqsum += sqsumstep - cn ) sum 203 modules/imgproc/src/sumpixels.cpp for( k = 0; k < cn; k++, src++, sum++, sqsum++ ) sum 205 modules/imgproc/src/sumpixels.cpp ST s = sum[-cn] = 0; sum 212 modules/imgproc/src/sumpixels.cpp ST t = sum[x - sumstep] + s; sum 214 modules/imgproc/src/sumpixels.cpp sum[x] = t; sum 226 modules/imgproc/src/sumpixels.cpp for( k = 0; k < cn; k++, src++, sum++, tilted++, buf++ ) sum 228 modules/imgproc/src/sumpixels.cpp sum[-cn] = tilted[-cn] = 0; sum 236 modules/imgproc/src/sumpixels.cpp sum[x] = s; sum 254 modules/imgproc/src/sumpixels.cpp sum += sumstep - cn; sum 261 modules/imgproc/src/sumpixels.cpp for( k = 0; k < cn; k++, src++, sum++, tilted++, buf++ ) sum 267 modules/imgproc/src/sumpixels.cpp sum[-cn] = 0; sum 272 modules/imgproc/src/sumpixels.cpp sum[0] = sum[-sumstep] + t0; sum 285 modules/imgproc/src/sumpixels.cpp sum[x] = sum[x - sumstep] + s; sum 300 modules/imgproc/src/sumpixels.cpp sum[x] = sum[x - sumstep] + s; sum 316 modules/imgproc/src/sumpixels.cpp static void integral_##suffix( T* src, size_t srcstep, ST* sum, size_t sumstep, QT* sqsum, size_t sqsumstep, \ sum 318 modules/imgproc/src/sumpixels.cpp { integral_(src, srcstep, sum, sumstep, sqsum, sqsumstep, tilted, tiltedstep, size, cn); } sum 334 modules/imgproc/src/sumpixels.cpp typedef void (*IntegralFunc)(const uchar* src, size_t srcstep, uchar* sum, size_t sumstep, sum 373 modules/imgproc/src/sumpixels.cpp UMat sum = _sum.getUMat(); sum 375 modules/imgproc/src/sumpixels.cpp krows.args(ocl::KernelArg::ReadOnlyNoSize(buf), ocl::KernelArg::WriteOnly(sum)); sum 414 modules/imgproc/src/sumpixels.cpp UMat sum = _sum.getUMat(); sum 418 modules/imgproc/src/sumpixels.cpp krows.args(ocl::KernelArg::ReadOnlyNoSize(buf), ocl::KernelArg::ReadOnlyNoSize(buf_sq), ocl::KernelArg::WriteOnly(sum), ocl::KernelArg::WriteOnlyNoSize(sum_sq)); sum 451 modules/imgproc/src/sumpixels.cpp Mat src = _src.getMat(), sum =_sum.getMat(), sqsum, tilted; sum 470 modules/imgproc/src/sumpixels.cpp status = ippiSqrIntegral_8u32f64f_C1R( (const Ipp8u*)src.data, (int)src.step, (Ipp32f*)sum.data, (int)sum.step, (Ipp64f*)sqsum.data, (int)sqsum.step, srcRoiSize, 0, 0 ); sum 474 modules/imgproc/src/sumpixels.cpp status = ippiIntegral_8u32f_C1R( (const Ipp8u*)src.data, (int)src.step, (Ipp32f*)sum.data, (int)sum.step, srcRoiSize, 0 ); sum 481 modules/imgproc/src/sumpixels.cpp status = ippiSqrIntegral_8u32s64f_C1R( (const Ipp8u*)src.data, (int)src.step, (Ipp32s*)sum.data, (int)sum.step, (Ipp64f*)sqsum.data, (int)sqsum.step, srcRoiSize, 0, 0 ); sum 485 modules/imgproc/src/sumpixels.cpp status = ippiIntegral_8u32s_C1R( (const Ipp8u*)src.data, (int)src.step, (Ipp32s*)sum.data, (int)sum.step, srcRoiSize, 0 ); sum 532 modules/imgproc/src/sumpixels.cpp func( src.ptr(), src.step, sum.ptr(), sum.step, sqsum.ptr(), sqsum.step, sum 536 modules/imgproc/src/sumpixels.cpp void cv::integral( InputArray src, OutputArray sum, int sdepth ) sum 538 modules/imgproc/src/sumpixels.cpp integral( src, sum, noArray(), noArray(), sdepth ); sum 541 modules/imgproc/src/sumpixels.cpp void cv::integral( InputArray src, OutputArray sum, OutputArray sqsum, int sdepth, int sqdepth ) sum 543 modules/imgproc/src/sumpixels.cpp integral( src, sum, sqsum, noArray(), sdepth, sqdepth ); sum 551 modules/imgproc/src/sumpixels.cpp cv::Mat src = cv::cvarrToMat(image), sum = cv::cvarrToMat(sumImage), sum0 = sum; sum 566 modules/imgproc/src/sumpixels.cpp cv::integral( src, sum, psqsum ? cv::_OutputArray(*psqsum) : cv::_OutputArray(), sum 567 modules/imgproc/src/sumpixels.cpp ptilted ? cv::_OutputArray(*ptilted) : cv::_OutputArray(), sum.depth() ); sum 569 modules/imgproc/src/sumpixels.cpp CV_Assert( sum.data == sum0.data && sqsum.data == sqsum0.data && tilted.data == tilted0.data ); sum 495 modules/imgproc/src/templmatch.cpp float templ_sum = (float)sum(templ)[0]; sum 498 modules/imgproc/src/templmatch.cpp float templ_sqsum = (float)sum(temp)[0]; sum 515 modules/imgproc/src/templmatch.cpp templ_sum = sum(templ); sum 518 modules/imgproc/src/templmatch.cpp templ_sqsum = sum(temp); sum 980 modules/imgproc/src/templmatch.cpp Mat sum, sqsum; sum 987 modules/imgproc/src/templmatch.cpp integral(img, sum, CV_64F); sum 992 modules/imgproc/src/templmatch.cpp integral(img, sum, sqsum, CV_64F); sum 1021 modules/imgproc/src/templmatch.cpp double* p0 = (double*)sum.data; sum 1023 modules/imgproc/src/templmatch.cpp double* p2 = (double*)(sum.data + templ.rows*sum.step); sum 1026 modules/imgproc/src/templmatch.cpp int sumstep = sum.data ? (int)(sum.step / sizeof(double)) : 0; sum 190 modules/imgproc/test/test_bilateral_filter.cpp float sum = 0, wsum = 0; sum 199 modules/imgproc/test/test_bilateral_filter.cpp sum += val*w; sum 202 modules/imgproc/test/test_bilateral_filter.cpp dptr[j] = (float)(sum/wsum); sum 802 modules/imgproc/test/test_filter.cpp double sum = 1.; sum 804 modules/imgproc/test/test_filter.cpp sum = kernel[n/2] = 1.f; sum 809 modules/imgproc/test/test_filter.cpp sum += kernel[n/2+i]*2; sum 812 modules/imgproc/test/test_filter.cpp sum = 1./sum; sum 814 modules/imgproc/test/test_filter.cpp kernel[n/2+i] = kernel[n/2-i] = (float)(kernel[n/2+i]*sum); sum 1660 modules/imgproc/test/test_filter.cpp static void test_integral( const Mat& img, Mat* sum, Mat* sqsum, Mat* tilted ) sum 1664 modules/imgproc/test/test_filter.cpp sum->create(img.rows+1, img.cols+1, CV_64F); sum 1671 modules/imgproc/test/test_filter.cpp double* sdata = sum->ptr<double>(); sum 1675 modules/imgproc/test/test_filter.cpp int sstep = (int)(sum->step/sizeof(sdata[0])); sum 745 modules/imgproc/test/test_histograms.cpp double sum = 0; sum 753 modules/imgproc/test/test_histograms.cpp sum += ptr[i]; sum 764 modules/imgproc/test/test_histograms.cpp sum += *(float*)CV_NODE_VAL(sparse,node); sum 768 modules/imgproc/test/test_histograms.cpp if( cvIsNaN(sum) || cvIsInf(sum) ) sum 771 modules/imgproc/test/test_histograms.cpp "The normalized histogram has invalid sum =%g\n", sum ); sum 774 modules/imgproc/test/test_histograms.cpp else if( fabs(sum - factor) > FLT_EPSILON*10*fabs(factor) ) sum 777 modules/imgproc/test/test_histograms.cpp "The normalized histogram has incorrect sum =%g, while it should be =%g\n", sum, factor ); sum 1808 modules/imgproc/test/test_histograms.cpp double sum = 0; sum 1812 modules/imgproc/test/test_histograms.cpp sum += v; sum 1815 modules/imgproc/test/test_histograms.cpp sum = sum > DBL_EPSILON ? 1./sum : 0; sum 1819 modules/imgproc/test/test_histograms.cpp double v0 = s[j]*sum; sum 1586 modules/imgproc/test/test_imgwarp.cpp WT sum = WT(sptr0[x1 + c]) + WT(sptr0[x1 + c + cn]); sum 1587 modules/imgproc/test/test_imgwarp.cpp sum += WT(sptr1[x1 + c]) + WT(sptr1[x1 + c + cn]) + (WT)(one); sum 1589 modules/imgproc/test/test_imgwarp.cpp dptr[x + c] = castOp(sum); sum 401 modules/imgproc/test/test_imgwarp_strict.cpp float sum = 0; sum 407 modules/imgproc/test/test_imgwarp_strict.cpp sum += coeffs[i]; sum 410 modules/imgproc/test/test_imgwarp_strict.cpp sum = 1.f/sum; sum 412 modules/imgproc/test/test_imgwarp_strict.cpp coeffs[i] *= sum; sum 681 modules/ml/src/ann_mlp.cpp double s = sum(sample_weights)[0]; sum 505 modules/ml/src/em.cpp trainLogLikelihood = sum(trainLogLikelihoods)[0]; sum 829 modules/ml/src/gbt.cpp float* sum = new float[class_count]; sum 830 modules/ml/src/gbt.cpp memset(sum, 0, class_count*sizeof(float)); sum 842 modules/ml/src/gbt.cpp sum[i] += params.shrinkage * p; sum 850 modules/ml/src/gbt.cpp sum[i] += base_value; sum 854 modules/ml/src/gbt.cpp result = sum[0]; sum 855 modules/ml/src/gbt.cpp delete[] sum; sum 861 modules/ml/src/gbt.cpp result = sum[k]; sum 862 modules/ml/src/gbt.cpp delete[] sum; sum 866 modules/ml/src/gbt.cpp float max = sum[0]; sum 869 modules/ml/src/gbt.cpp if (sum[i] > max) sum 871 modules/ml/src/gbt.cpp max = sum[i]; sum 875 modules/ml/src/gbt.cpp delete[] sum; sum 893 modules/ml/src/gbt.cpp float* sum; sum 903 modules/ml/src/gbt.cpp Tree_predictor() : weak(0), sum(0), k(0), sample(0), missing(0), shrinkage(1.0f) {} sum 906 modules/ml/src/gbt.cpp weak(_weak), sum(_sum), k(_k), sample(_sample), sum 911 modules/ml/src/gbt.cpp weak(p.weak), sum(p.sum), k(p.k), sample(p.sample), sum 943 modules/ml/src/gbt.cpp sum[i] += tmp_sum; sum 960 modules/ml/src/gbt.cpp float* sum = new float[class_count]; sum 962 modules/ml/src/gbt.cpp sum[i] = 0.0f; sum 968 modules/ml/src/gbt.cpp params.shrinkage, _sample, _missing, sum); sum 973 modules/ml/src/gbt.cpp sum[i] = sum[i] /** params.shrinkage*/ + base_value; sum 977 modules/ml/src/gbt.cpp result = sum[0]; sum 978 modules/ml/src/gbt.cpp delete[] sum; sum 984 modules/ml/src/gbt.cpp result = sum[k]; sum 985 modules/ml/src/gbt.cpp delete[] sum; sum 989 modules/ml/src/gbt.cpp float max = sum[0]; sum 992 modules/ml/src/gbt.cpp if (sum[i] > max) sum 994 modules/ml/src/gbt.cpp max = sum[i]; sum 998 modules/ml/src/gbt.cpp delete[] sum; sum 129 modules/ml/src/inner_functions.cpp float sum = 0.f; sum 133 modules/ml/src/inner_functions.cpp sum += val*val; sum 136 modules/ml/src/inner_functions.cpp S.at<float>(i,i) = std::sqrt(std::max(A.at<float>(i,i) - sum, 0.f)); sum 141 modules/ml/src/inner_functions.cpp sum = 0; sum 143 modules/ml/src/inner_functions.cpp sum += S.at<float>(k, i) * S.at<float>(k, j); sum 145 modules/ml/src/inner_functions.cpp S.at<float>(i, j) = (A.at<float>(i, j) - sum)*ival; sum 216 modules/ml/src/lr.cpp if( cvIsNaN( (double)sum(this->learnt_thetas)[0] ) ) sum 332 modules/ml/src/lr.cpp rparameter = (llambda/(2*m)) * sum(theta_b)[0]; sum 337 modules/ml/src/lr.cpp rparameter = (llambda/(2*m)) * sum(theta_c)[0]; sum 350 modules/ml/src/lr.cpp cost = (-1.0/m) * (sum(d_a)[0] + sum(d_b)[0]); sum 406 modules/ml/src/lr.cpp gradient.row(0) = ((float)1/m) * sum(pcal_ab)[0]; sum 417 modules/ml/src/lr.cpp gradient.row(ii) = (1.0/m)*sum(pcal_ab)[0] + (llambda/m) * theta_p.row(ii); sum 492 modules/ml/src/lr.cpp gradient.row(0) = ((float)1/m) * sum(pcal_ab)[0]; sum 500 modules/ml/src/lr.cpp gradient.row(k) = (1.0/m)*sum(pcal_ab)[0] + (lambda_l/m) * theta_p.row(k); sum 74 modules/ml/src/nbayes.cpp sum.resize(nclasses); sum 83 modules/ml/src/nbayes.cpp sum[cls] = Mat::zeros( 1, nvars, CV_64FC1 ); sum 115 modules/ml/src/nbayes.cpp double* sum_data = sum[cls].ptr<double>(); sum 139 modules/ml/src/nbayes.cpp double* sum1 = sum[cls].ptr<double>(); sum 151 modules/ml/src/nbayes.cpp sum1 = sum[cls].ptr<double>(); sum 156 modules/ml/src/nbayes.cpp double* sum2 = sum[cls].ptr<double>(); sum 358 modules/ml/src/nbayes.cpp fs << sum[i]; sum 408 modules/ml/src/nbayes.cpp sum.resize(nclasses); sum 418 modules/ml/src/nbayes.cpp *sum_it >> sum[i]; sum 431 modules/ml/src/nbayes.cpp sum.clear(); sum 450 modules/ml/src/nbayes.cpp vector<Mat> count, sum, productsum, avg, inv_eigen_values, cov_rotate_mats; sum 743 modules/ml/src/svm.cpp double sum = alpha_i + alpha_j; sum 747 modules/ml/src/svm.cpp if( sum > C_i && alpha_i > C_i ) sum 750 modules/ml/src/svm.cpp alpha_j = sum - C_i; sum 752 modules/ml/src/svm.cpp else if( sum <= C_i && alpha_j < 0) sum 755 modules/ml/src/svm.cpp alpha_i = sum; sum 758 modules/ml/src/svm.cpp if( sum > C_j && alpha_j > C_j ) sum 761 modules/ml/src/svm.cpp alpha_i = sum - C_j; sum 763 modules/ml/src/svm.cpp else if( sum <= C_j && alpha_i < 0 ) sum 766 modules/ml/src/svm.cpp alpha_j = sum; sum 1160 modules/ml/src/svm.cpp double sum = C * nu * sample_count * 0.5; sum 1170 modules/ml/src/svm.cpp _alpha[i] = _alpha[i + sample_count] = std::min(sum, C); sum 1171 modules/ml/src/svm.cpp sum -= _alpha[i]; sum 1856 modules/ml/src/svm.cpp double sum = -df->rho; sum 1858 modules/ml/src/svm.cpp sum += buffer[i]*svm->df_alpha[i]; sum 1859 modules/ml/src/svm.cpp float result = svm->params.svmType == ONE_CLASS && !returnDFVal ? (float)(sum > 0) : (float)sum; sum 1871 modules/ml/src/svm.cpp double sum = 0.; sum 1880 modules/ml/src/svm.cpp sum = -df.rho; sum 1885 modules/ml/src/svm.cpp sum += alpha[k]*buffer[sv_index[k]]; sum 1887 modules/ml/src/svm.cpp vote[sum > 0 ? i : j]++; sum 1897 modules/ml/src/svm.cpp (float)sum : (float)(svm->class_labels.at<int>(k)); sum 543 modules/ml/src/tree.cpp double sum_k = 0, sum = 0, max_val_k = 0; sum 551 modules/ml/src/tree.cpp sum += val; sum 561 modules/ml/src/tree.cpp w->cv_node_risk[nidx*cv_n + j] = sum - max_val; sum 579 modules/ml/src/tree.cpp double sum = 0, sum2 = 0, sumw = 0; sum 588 modules/ml/src/tree.cpp sum += t*wval; sum 617 modules/ml/src/tree.cpp sum += cv_sum[j]; sum 624 modules/ml/src/tree.cpp double s = sum - cv_sum[j], si = sum - s; sum 634 modules/ml/src/tree.cpp node->node_risk = sum2 - (sum/sumw)*sum; sum 635 modules/ml/src/tree.cpp node->value = sum/sumw; sum 726 modules/ml/src/tree.cpp double sum = 0; sum 732 modules/ml/src/tree.cpp sum += v[j]; sum 733 modules/ml/src/tree.cpp v_weights[i] = sum ? 1./sum : 0.; sum 770 modules/ml/src/tree.cpp double sum = 0; sum 772 modules/ml/src/tree.cpp sum += s[j]; sum 773 modules/ml/src/tree.cpp c_weights[i] = sum ? 1./sum : 0; sum 877 modules/ml/src/tree.cpp double sum = 0; sum 879 modules/ml/src/tree.cpp sum += cjk[j*m + k]; sum 880 modules/ml/src/tree.cpp CV_Assert(sum > 0); sum 881 modules/ml/src/tree.cpp rc[k] = sum; sum 887 modules/ml/src/tree.cpp double sum = 0; sum 889 modules/ml/src/tree.cpp sum += cjk[j*m + k]; sum 890 modules/ml/src/tree.cpp c_weights[j] = sum; sum 1055 modules/ml/src/tree.cpp double* sum = (double*)buf + 1; sum 1056 modules/ml/src/tree.cpp double* counts = sum + mi + 1; sum 1066 modules/ml/src/tree.cpp sum[i] = counts[i] = 0; sum 1074 modules/ml/src/tree.cpp sum[idx] += responses[si]*wval; sum 1082 modules/ml/src/tree.cpp rsum += sum[i]; sum 1083 modules/ml/src/tree.cpp sum[i] = fabs(counts[i]) > DBL_EPSILON ? sum[i]/counts[i] : 0; sum 1084 modules/ml/src/tree.cpp sum_ptr[i] = sum + i; sum 1092 modules/ml/src/tree.cpp sum[i] *= counts[i]; sum 1096 modules/ml/src/tree.cpp int idx = (int)(sum_ptr[subset_i] - sum); sum 1101 modules/ml/src/tree.cpp double s = sum[idx]; sum 1125 modules/ml/src/tree.cpp int idx = (int)(sum_ptr[i] - sum); sum 1383 modules/ml/src/tree.cpp double sum = 0.; sum 1469 modules/ml/src/tree.cpp sum += nodes[prev].value; sum 1487 modules/ml/src/tree.cpp sum = (flags & RAW_OUTPUT) ? (float)best_idx : classLabels[best_idx]; sum 1490 modules/ml/src/tree.cpp return (float)sum; sum 206 modules/ml/test/test_lr.cpp errorCount += 1 - (float)sum(comp_learnt_mats)[0]/comp_learnt_mats.rows; sum 143 modules/objdetect/include/opencv2/objdetect/objdetect_c.h const CvArr* sum, const CvArr* sqsum, sum 628 modules/objdetect/src/cascadedetect.cpp UMat sum(usbuf, Rect(sx, sy, s.szi.width, s.szi.height)); sum 636 modules/objdetect/src/cascadedetect.cpp integral(img, sum, sqsum, tilted, CV_32S, CV_32S); sum 641 modules/objdetect/src/cascadedetect.cpp integral(img, sum, sqsum, noArray(), CV_32S, CV_32S); sum 647 modules/objdetect/src/cascadedetect.cpp Mat sum(s.szi, CV_32S, sbuf.ptr<int>() + s.layer_ofs, sbuf.step); sum 648 modules/objdetect/src/cascadedetect.cpp Mat sqsum(s.szi, CV_32S, sum.ptr<int>() + sqofs, sbuf.step); sum 652 modules/objdetect/src/cascadedetect.cpp Mat tilted(s.szi, CV_32S, sum.ptr<int>() + tofs, sbuf.step); sum 653 modules/objdetect/src/cascadedetect.cpp integral(img, sum, sqsum, tilted, CV_32S, CV_32S); sum 656 modules/objdetect/src/cascadedetect.cpp integral(img, sum, sqsum, noArray(), CV_32S, CV_32S); sum 805 modules/objdetect/src/cascadedetect.cpp UMat sum(usbuf, Rect(sx, sy, s.szi.width, s.szi.height)); sum 806 modules/objdetect/src/cascadedetect.cpp integral(_img, sum, noArray(), noArray(), CV_32S); sum 810 modules/objdetect/src/cascadedetect.cpp Mat sum(s.szi, CV_32S, sbuf.ptr<int>() + s.layer_ofs, sbuf.step); sum 811 modules/objdetect/src/cascadedetect.cpp integral(_img, sum, noArray(), noArray(), CV_32S); sum 258 modules/objdetect/src/cascadedetect.hpp #define CV_SUM_PTRS( p0, p1, p2, p3, sum, rect, step ) \ sum 260 modules/objdetect/src/cascadedetect.hpp (p0) = sum + (rect).x + (step) * (rect).y, \ sum 262 modules/objdetect/src/cascadedetect.hpp (p1) = sum + (rect).x + (rect).width + (step) * (rect).y, \ sum 264 modules/objdetect/src/cascadedetect.hpp (p2) = sum + (rect).x + (step) * ((rect).y + (rect).height), \ sum 266 modules/objdetect/src/cascadedetect.hpp (p3) = sum + (rect).x + (rect).width + (step) * ((rect).y + (rect).height) sum 284 modules/objdetect/src/cascadedetect.hpp #define CV_SUM_OFS( p0, p1, p2, p3, sum, rect, step ) \ sum 286 modules/objdetect/src/cascadedetect.hpp (p0) = sum + (rect).x + (step) * (rect).y, \ sum 288 modules/objdetect/src/cascadedetect.hpp (p1) = sum + (rect).x + (rect).width + (step) * (rect).y, \ sum 290 modules/objdetect/src/cascadedetect.hpp (p2) = sum + (rect).x + (step) * ((rect).y + (rect).height), \ sum 292 modules/objdetect/src/cascadedetect.hpp (p3) = sum + (rect).x + (rect).width + (step) * ((rect).y + (rect).height) sum 487 modules/objdetect/src/cascadedetect.hpp Ptr<FeatureEvaluator> &_featureEvaluator, double& sum ) sum 501 modules/objdetect/src/cascadedetect.hpp sum = 0; sum 515 modules/objdetect/src/cascadedetect.hpp sum += cascadeLeaves[leafOfs - idx]; sum 519 modules/objdetect/src/cascadedetect.hpp if( sum < stage.threshold ) sum 527 modules/objdetect/src/cascadedetect.hpp Ptr<FeatureEvaluator> &_featureEvaluator, double& sum ) sum 543 modules/objdetect/src/cascadedetect.hpp sum = 0; sum 557 modules/objdetect/src/cascadedetect.hpp sum += cascadeLeaves[leafOfs - idx]; sum 561 modules/objdetect/src/cascadedetect.hpp if( sum < stage.threshold ) sum 569 modules/objdetect/src/cascadedetect.hpp Ptr<FeatureEvaluator> &_featureEvaluator, double& sum ) sum 594 modules/objdetect/src/cascadedetect.hpp sum = (double)tmp; sum 600 modules/objdetect/src/cascadedetect.hpp sum = (double)tmp; sum 606 modules/objdetect/src/cascadedetect.hpp Ptr<FeatureEvaluator> &_featureEvaluator, double& sum ) sum 633 modules/objdetect/src/cascadedetect.hpp sum = tmp; sum 641 modules/objdetect/src/cascadedetect.hpp sum = (double)tmp; sum 918 modules/objdetect/src/detection_based_tracker.cpp double sum=0; sum 923 modules/objdetect/src/detection_based_tracker.cpp sum+=weightsSizesSmoothing[j]; sum 925 modules/objdetect/src/detection_based_tracker.cpp w /= sum; sum 926 modules/objdetect/src/detection_based_tracker.cpp h /= sum; sum 933 modules/objdetect/src/detection_based_tracker.cpp double sum=0; sum 947 modules/objdetect/src/detection_based_tracker.cpp sum+=weightsPositionsSmoothing[j]; sum 949 modules/objdetect/src/detection_based_tracker.cpp center *= (float)(1 / sum); sum 123 modules/objdetect/src/haar.cpp CvMat sum, sqsum, tilted; sum 410 modules/objdetect/src/haar.cpp #define sum_elem_ptr(sum,row,col) \ sum 411 modules/objdetect/src/haar.cpp ((sumtype*)CV_MAT_ELEM_PTR_FAST((sum),(row),(col),sizeof(sumtype))) sum 430 modules/objdetect/src/haar.cpp CvMat sum_stub, *sum = (CvMat*)_sum; sum 445 modules/objdetect/src/haar.cpp sum = cvGetMat( sum, &sum_stub, &coi0 ); sum 451 modules/objdetect/src/haar.cpp if( !CV_ARE_SIZES_EQ( sum, sqsum )) sum 455 modules/objdetect/src/haar.cpp CV_MAT_TYPE(sum->type) != CV_32SC1 ) sum 472 modules/objdetect/src/haar.cpp if( sum->step != tilted->step ) sum 476 modules/objdetect/src/haar.cpp if( !CV_ARE_SIZES_EQ( sum, tilted )) sum 485 modules/objdetect/src/haar.cpp cascade->sum = *sum; sum 494 modules/objdetect/src/haar.cpp cascade->p0 = sum_elem_ptr(*sum, equRect.y, equRect.x); sum 495 modules/objdetect/src/haar.cpp cascade->p1 = sum_elem_ptr(*sum, equRect.y, equRect.x + equRect.width ); sum 496 modules/objdetect/src/haar.cpp cascade->p2 = sum_elem_ptr(*sum, equRect.y + equRect.height, equRect.x ); sum 497 modules/objdetect/src/haar.cpp cascade->p3 = sum_elem_ptr(*sum, equRect.y + equRect.height, sum 610 modules/objdetect/src/haar.cpp hidfeature->rect[k].p0 = sum_elem_ptr(*sum, tr.y, tr.x); sum 611 modules/objdetect/src/haar.cpp hidfeature->rect[k].p1 = sum_elem_ptr(*sum, tr.y, tr.x + tr.width); sum 612 modules/objdetect/src/haar.cpp hidfeature->rect[k].p2 = sum_elem_ptr(*sum, tr.y + tr.height, tr.x); sum 613 modules/objdetect/src/haar.cpp hidfeature->rect[k].p3 = sum_elem_ptr(*sum, tr.y + tr.height, tr.x + tr.width); sum 691 modules/objdetect/src/haar.cpp __m256 sum = _mm256_mul_ps(offset, weight); sum 711 modules/objdetect/src/haar.cpp sum = _mm256_add_ps(sum, _mm256_mul_ps(offset, weight)); sum 730 modules/objdetect/src/haar.cpp sum = _mm256_add_ps(sum,_mm256_load_ps(tmp)); sum 741 modules/objdetect/src/haar.cpp _mm256_store_si256((__m256i*)idxV, _mm256_cvttps_epi32(_mm256_blendv_ps(right, left, _mm256_cmp_ps(sum, t, _CMP_LT_OQ)))); sum 803 modules/objdetect/src/haar.cpp double sum = calc_sum(node->feature.rect[0],p_offset) * node->feature.rect[0].weight; sum 804 modules/objdetect/src/haar.cpp sum += calc_sum(node->feature.rect[1],p_offset) * node->feature.rect[1].weight; sum 807 modules/objdetect/src/haar.cpp sum += calc_sum(node->feature.rect[2],p_offset) * node->feature.rect[2].weight; sum 809 modules/objdetect/src/haar.cpp idx = sum < t ? node->left : node->right; sum 847 modules/objdetect/src/haar.cpp pt.x + _cascade->real_window_size.width >= cascade->sum.width || sum 848 modules/objdetect/src/haar.cpp pt.y + _cascade->real_window_size.height >= cascade->sum.height ) sum 851 modules/objdetect/src/haar.cpp p_offset = pt.y * (cascade->sum.step/sizeof(sumtype)) + pt.x; sum 962 modules/objdetect/src/haar.cpp __m256 sum = _mm256_mul_ps(offset, weight); sum 982 modules/objdetect/src/haar.cpp sum = _mm256_add_ps(sum, _mm256_mul_ps(offset,weight)); sum 1001 modules/objdetect/src/haar.cpp _mm256_store_ps(buf, _mm256_blendv_ps(alpha0, alpha1, _mm256_cmp_ps(t, sum, _CMP_LE_OQ))); sum 1011 modules/objdetect/src/haar.cpp double sum = calc_sum(node->feature.rect[0],p_offset) * node->feature.rect[0].weight; sum 1012 modules/objdetect/src/haar.cpp sum += calc_sum(node->feature.rect[1],p_offset) * node->feature.rect[1].weight; sum 1013 modules/objdetect/src/haar.cpp stage_sum += classifier->alpha[sum >= t]; sum 1068 modules/objdetect/src/haar.cpp __m256 sum = _mm256_mul_ps(offset, weight); sum 1088 modules/objdetect/src/haar.cpp sum = _mm256_add_ps(sum, _mm256_mul_ps(offset, weight)); sum 1107 modules/objdetect/src/haar.cpp sum = _mm256_add_ps(sum, _mm256_load_ps(tmp)); sum 1126 modules/objdetect/src/haar.cpp __m256 outBuf = _mm256_blendv_ps(alpha0, alpha1, _mm256_cmp_ps(t, sum, _CMP_LE_OQ )); sum 1139 modules/objdetect/src/haar.cpp double sum = calc_sum(node->feature.rect[0],p_offset) * node->feature.rect[0].weight; sum 1140 modules/objdetect/src/haar.cpp sum += calc_sum(node->feature.rect[1],p_offset) * node->feature.rect[1].weight; sum 1142 modules/objdetect/src/haar.cpp sum += calc_sum(node->feature.rect[2],p_offset) * node->feature.rect[2].weight; sum 1143 modules/objdetect/src/haar.cpp stage_sum += classifier->alpha[sum >= t]; sum 1168 modules/objdetect/src/haar.cpp __m128d sum = _mm_set_sd(calc_sum(node->feature.rect[0],p_offset) * node->feature.rect[0].weight + sum 1170 modules/objdetect/src/haar.cpp t = _mm_cmpgt_sd(t, sum); sum 1188 modules/objdetect/src/haar.cpp __m128d sum = _mm_set_sd(_sum); sum 1190 modules/objdetect/src/haar.cpp t = _mm_cmpgt_sd(t, sum); sum 1212 modules/objdetect/src/haar.cpp double sum = calc_sum(node->feature.rect[0],p_offset) * node->feature.rect[0].weight; sum 1213 modules/objdetect/src/haar.cpp sum += calc_sum(node->feature.rect[1],p_offset) * node->feature.rect[1].weight; sum 1214 modules/objdetect/src/haar.cpp stage_sum += classifier->alpha[sum >= t]; sum 1224 modules/objdetect/src/haar.cpp double sum = calc_sum(node->feature.rect[0],p_offset) * node->feature.rect[0].weight; sum 1225 modules/objdetect/src/haar.cpp sum += calc_sum(node->feature.rect[1],p_offset) * node->feature.rect[1].weight; sum 1227 modules/objdetect/src/haar.cpp sum += calc_sum(node->feature.rect[2],p_offset) * node->feature.rect[2].weight; sum 1228 modules/objdetect/src/haar.cpp stage_sum += classifier->alpha[sum >= t]; sum 1501 modules/objdetect/src/haar.cpp cv::Ptr<CvMat> temp, sum, tilted, sqsum, normImg, sumcanny, imgSmall; sum 1541 modules/objdetect/src/haar.cpp sum.reset(cvCreateMat( img->rows + 1, img->cols + 1, CV_32SC1 )); sum 1594 modules/objdetect/src/haar.cpp sum1 = cvMat( sz.height+1, sz.width+1, CV_32SC1, sum->data.ptr ); sum 1635 modules/objdetect/src/haar.cpp cvIntegral( img, sum, sqsum, tilted ); sum 1684 modules/objdetect/src/haar.cpp cvSetImagesForHaarClassifierCascade( cascade, sum, sqsum, tilted, factor ); sum 1701 modules/objdetect/src/haar.cpp pq[0] = (int*)(sum->data.ptr + equRect.y*sum->step) + equRect.x; sum 1702 modules/objdetect/src/haar.cpp pq[1] = (int*)(sum->data.ptr + equRect.y*sum->step) sum 1704 modules/objdetect/src/haar.cpp pq[2] = (int*)(sum->data.ptr + (equRect.y + equRect.height)*sum->step) + equRect.x; sum 1705 modules/objdetect/src/haar.cpp pq[3] = (int*)(sum->data.ptr + (equRect.y + equRect.height)*sum->step) sum 1721 modules/objdetect/src/haar.cpp ystep, sum->step, (const int**)p, sum 963 modules/objdetect/src/hog.cpp float* hist = &_hist[0], sum = 0.0f, partSum[4]; sum 991 modules/objdetect/src/hog.cpp sum = t0 + t1; sum 993 modules/objdetect/src/hog.cpp sum += hist[i]*hist[i]; sum 995 modules/objdetect/src/hog.cpp float scale = 1.f/(std::sqrt(sum)+sz*0.1f), thresh = (float)descriptor->L2HysThreshold; sum 996 modules/objdetect/src/hog.cpp i = 0, sum = 0.0f; sum 1036 modules/objdetect/src/hog.cpp sum = t0 + t1; sum 1040 modules/objdetect/src/hog.cpp sum += hist[i]*hist[i]; sum 1043 modules/objdetect/src/hog.cpp scale = 1.f/(std::sqrt(sum)+1e-3f), i = 0; sum 1524 modules/objdetect/src/hog.cpp __m128 sum = _mm_mul_ps(_svmVec, _vec); sum 1531 modules/objdetect/src/hog.cpp sum = _mm_add_ps(sum, _mm_mul_ps(_vec, _svmVec)); sum 1534 modules/objdetect/src/hog.cpp _mm_storeu_ps(partSum, sum); sum 3390 modules/objdetect/src/hog.cpp __m128 sum = _mm_mul_ps(_svmVec, _vec); sum 3397 modules/objdetect/src/hog.cpp sum = _mm_add_ps(sum, _mm_mul_ps(_vec, _svmVec)); sum 3400 modules/objdetect/src/hog.cpp _mm_storeu_ps(partSum, sum); sum 950 modules/objdetect/test/test_cascadeandhog.cpp float sum = t0 + t1; sum 952 modules/objdetect/test/test_cascadeandhog.cpp sum += hist[i]*hist[i]; sum 954 modules/objdetect/test/test_cascadeandhog.cpp float scale = 1.f/(std::sqrt(sum)+sz*0.1f), thresh = (float)descriptor->L2HysThreshold; sum 969 modules/objdetect/test/test_cascadeandhog.cpp sum = t0 + t1; sum 973 modules/objdetect/test/test_cascadeandhog.cpp sum += hist[i]*hist[i]; sum 976 modules/objdetect/test/test_cascadeandhog.cpp scale = 1.f/(std::sqrt(sum)+1e-3f); sum 255 modules/photo/src/align.cpp int median = 0, sum = 0; sum 257 modules/photo/src/align.cpp while(sum < thresh && median < LDR_SIZE) { sum 258 modules/photo/src/align.cpp sum += static_cast<int>(ptr[median]); sum 235 modules/photo/src/calibrate.cpp float diff = static_cast<float>(sum(sum(abs(new_response - response)))[0] / channels); sum 103 modules/photo/src/contrast_preserve.hpp double sum = 0.0; sum 105 modules/photo/src/contrast_preserve.hpp sum +=energy[i]; sum 107 modules/photo/src/contrast_preserve.hpp return (sum/polyGrad[0].size()); sum 291 modules/photo/src/contrast_preserve.hpp double sum =0.0; sum 293 modules/photo/src/contrast_preserve.hpp sum += abs(alf[i]); sum 295 modules/photo/src/contrast_preserve.hpp sum = (double)100*sum/alf.size(); sum 375 modules/photo/src/contrast_preserve.hpp vector <int> sum; sum 378 modules/photo/src/contrast_preserve.hpp sum.push_back(comb[i][0] + comb[i][1] + comb[i][2]); sum 380 modules/photo/src/contrast_preserve.hpp for(unsigned int i=0;i<sum.size();i++) sum 382 modules/photo/src/contrast_preserve.hpp if(sum[i] == 1) sum 389 modules/photo/src/contrast_preserve.hpp sum.clear(); sum 132 modules/photo/src/tonemap.cpp float mean = expf(static_cast<float>(sum(log_img)[0]) / log_img.total()); sum 300 modules/photo/src/tonemap.cpp float log_mean = static_cast<float>(sum(log_img)[0] / log_img.total()); sum 511 modules/photo/src/tonemap.cpp void calculateSum(std::vector<Mat>& x_contrast, std::vector<Mat>& y_contrast, Mat& sum) sum 513 modules/photo/src/tonemap.cpp sum = Mat::zeros(x_contrast[x_contrast.size() - 1].size(), CV_32F); sum 519 modules/photo/src/tonemap.cpp resize(sum, sum, x_contrast[i].size()); sum 520 modules/photo/src/tonemap.cpp sum += grad_x + grad_y.t(); sum 142 modules/shape/src/hist_cost.cpp scd1.row(i)/=(sum(scd1.row(i))[0]+FLT_EPSILON); sum 146 modules/shape/src/hist_cost.cpp scd2.row(i)/=(sum(scd2.row(i))[0]+FLT_EPSILON); sum 267 modules/shape/src/hist_cost.cpp scd1.row(i)/=(sum(row)[0]+FLT_EPSILON); sum 272 modules/shape/src/hist_cost.cpp scd2.row(i)/=(sum(row)[0]+FLT_EPSILON); sum 388 modules/shape/src/hist_cost.cpp scd1.row(i)/=(sum(row)[0]+FLT_EPSILON); sum 393 modules/shape/src/hist_cost.cpp scd2.row(i)/=(sum(row)[0]+FLT_EPSILON); sum 504 modules/shape/src/hist_cost.cpp scd1.row(i)/=(sum(row)[0]+FLT_EPSILON); sum 509 modules/shape/src/hist_cost.cpp scd2.row(i)/=(sum(row)[0]+FLT_EPSILON); sum 309 modules/shape/src/sc_dis.cpp iAppearance = float(cv::sum(appIm)[0]/sset1.cols); sum 621 modules/stitching/src/seam_finders.cpp std::vector<Point> sum(nlabels); sum 626 modules/stitching/src/seam_finders.cpp sum[labels[i]] += specialPoints[i]; sum 640 modules/stitching/src/seam_finders.cpp double cx1 = cvRound(sum[i].x / size1), cy1 = cvRound(sum[i].y / size1); sum 641 modules/stitching/src/seam_finders.cpp double cx2 = cvRound(sum[j].x / size2), cy2 = cvRound(sum[j].y / size1); sum 660 modules/stitching/src/seam_finders.cpp double cx = cvRound(sum[idx[i]].x / size); sum 661 modules/stitching/src/seam_finders.cpp double cy = cvRound(sum[idx[i]].y / size); sum 2577 modules/ts/src/ts_func.cpp mean_(const _Tp* src, const uchar* mask, size_t total, int cn, Scalar& sum, int& nz) sum 2586 modules/ts/src/ts_func.cpp sum[c] += src[i + c]; sum 2596 modules/ts/src/ts_func.cpp sum[c] += src[i*cn + c]; sum 2604 modules/ts/src/ts_func.cpp Scalar sum; sum 2623 modules/ts/src/ts_func.cpp mean_((const uchar*)sptr, mptr, total, cn, sum, nz); sum 2626 modules/ts/src/ts_func.cpp mean_((const schar*)sptr, mptr, total, cn, sum, nz); sum 2629 modules/ts/src/ts_func.cpp mean_((const ushort*)sptr, mptr, total, cn, sum, nz); sum 2632 modules/ts/src/ts_func.cpp mean_((const short*)sptr, mptr, total, cn, sum, nz); sum 2635 modules/ts/src/ts_func.cpp mean_((const int*)sptr, mptr, total, cn, sum, nz); sum 2638 modules/ts/src/ts_func.cpp mean_((const float*)sptr, mptr, total, cn, sum, nz); sum 2641 modules/ts/src/ts_func.cpp mean_((const double*)sptr, mptr, total, cn, sum, nz); sum 2648 modules/ts/src/ts_func.cpp return sum * (1./std::max(nz, 1)); sum 1823 modules/ts/src/ts_gtest.cpp int sum = 0; sum 1825 modules/ts/src/ts_gtest.cpp sum += (case_list[i]->*method)(); sum 1827 modules/ts/src/ts_gtest.cpp return sum; sum 1240 modules/ts/src/ts_perf.cpp cv::sum(m.reshape(1)); sum 60 modules/video/src/compat_video.cpp comp->area = cvRound(cv::sum(img(window))[0]); sum 81 modules/video/src/compat_video.cpp comp->area = cvRound(cv::sum(img(roi))[0]); sum 555 modules/video/src/optflowgf.cpp float sum = vsum[x]*kernel[0]; sum 557 modules/video/src/optflowgf.cpp sum += kernel[i]*(vsum[x - i*5] + vsum[x + i*5]); sum 558 modules/video/src/optflowgf.cpp hsum[x] = sum; sum 1255 modules/video/src/tvl1flow.cpp error = cv::sum(diff)[0]; sum 120 modules/video/test/test_tvl1optflow.cpp double sum = 0.0; sum 133 modules/video/test/test_tvl1optflow.cpp sum += diff.ddot(diff); sum 138 modules/video/test/test_tvl1optflow.cpp return sqrt(sum / (1e-9 + counter)); sum 96 modules/videostab/src/motion_stabilizing.cpp float sum = 0; sum 99 modules/videostab/src/motion_stabilizing.cpp sum += weight_[radius_ + i] = std::exp(-i*i/(stdev_*stdev_)); sum 101 modules/videostab/src/motion_stabilizing.cpp weight_[radius_ + i] /= sum; sum 109 modules/videostab/src/motion_stabilizing.cpp float sum = 0.f; sum 115 modules/videostab/src/motion_stabilizing.cpp sum += weight_[radius_ + i - idx]; sum 117 modules/videostab/src/motion_stabilizing.cpp return sum > 0.f ? res / sum : Mat::eye(cur.size(), cur.type()); sum 180 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java int sum = 0; sum 183 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java sum += (i / GRID_SIZE) + 1; sum 190 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java sum += smaller; sum 193 samples/android/15-puzzle/src/org/opencv/samples/puzzle15/Puzzle15Processor.java return sum % 2 == 0; sum 131 samples/cpp/autofocus.cpp unsigned long int sum = 0; sum 141 samples/cpp/autofocus.cpp sum += *it != 0; sum 144 samples/cpp/autofocus.cpp return (double) sum / (double) size; sum 208 samples/cpp/letter_recog.cpp double rt_imp_sum = sum( var_importance )[0]; sum 149 samples/cpp/openni_capture.cpp int l = 100000, r = 10000, sum = 0; sum 154 samples/cpp/openni_capture.cpp if( retrievedImageFlags[j] ) sum++; sum 157 samples/cpp/openni_capture.cpp if( sum == 0 ) sum 143 samples/cpp/tutorial_code/HighGUI/video-input-psnr-ssim/video-input-psnr-ssim.cpp Scalar s = sum(s1); // sum elements per channel sum 180 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp Scalar s = sum(s1); // sum elements per channel sum 207 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp double sse = cuda::sum(b.gs, b.buf)[0]; sum 234 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp Scalar s = cuda::sum(gs); sum 366 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp Scalar s = cuda::sum(ssim_map); sum 439 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp Scalar s = cuda::sum(b.ssim_map, b.buf); sum 79 samples/gpu/performance/performance.cpp double sum = accumulate(samples.begin(), samples.end(), 0.); sum 81 samples/gpu/performance/performance.cpp return (sum - samples[0]) / (samples.size() - 1); sum 82 samples/gpu/performance/performance.cpp return sum; sum 195 samples/gpu/performance/tests.cpp Mat src, sum; sum 204 samples/gpu/performance/tests.cpp integral(src, sum); sum 207 samples/gpu/performance/tests.cpp integral(src, sum);