mean 173 3rdparty/libwebp/utils/filters.c int mean = p[0]; mean 175 3rdparty/libwebp/utils/filters.c const int diff0 = SDIFF(p[i], mean); mean 185 3rdparty/libwebp/utils/filters.c mean = (3 * mean + p[i] + 2) >> 2; mean 1904 apps/traincascade/old_ml.hpp CVAPI(void) cvRandMVNormal( CvMat* mean, CvMat* cov, CvMat* sample, mean 158 apps/traincascade/old_ml_inner_functions.cpp CV_IMPL void cvRandMVNormal( CvMat* mean, CvMat* cov, CvMat* sample, CvRNG* rng ) mean 175 apps/traincascade/old_ml_inner_functions.cpp cvMatMulAdd(vect, utmat, mean, vect); mean 354 modules/calib3d/src/calibinit.cpp double mean = cvAvg( img ).val[0]; mean 355 modules/calib3d/src/calibinit.cpp int thresh_level = cvRound( mean - 10 ); mean 1365 modules/calib3d/src/calibration.cpp CvScalar mean, sdv; mean 1366 modules/calib3d/src/calibration.cpp cvAvgSdv( matM, &mean, &sdv ); mean 1367 modules/calib3d/src/calibration.cpp if( fabs(mean.val[2]) > 1e-5 || fabs(sdv.val[2]) > 1e-5 ) mean 70 modules/calib3d/src/dls.h cv::Mat mean(const cv::Mat& M); mean 542 modules/calib3d/src/fisheye.cpp cv::Scalar center_mass = mean(points); mean 1217 modules/calib3d/src/fisheye.cpp double mxx = mean(ax)[0]; mean 1218 modules/calib3d/src/fisheye.cpp double myy = mean(ay)[0]; mean 1223 modules/calib3d/src/fisheye.cpp double scxx = mean(abs(ax))[0]; mean 1224 modules/calib3d/src/fisheye.cpp double scyy = mean(abs(ay))[0]; mean 589 modules/core/include/opencv2/core.hpp CV_EXPORTS_W Scalar mean(InputArray src, InputArray mask = noArray()); mean 611 modules/core/include/opencv2/core.hpp CV_EXPORTS_W void meanStdDev(InputArray src, OutputArray mean, OutputArray stddev, mean 1829 modules/core/include/opencv2/core.hpp CV_EXPORTS void calcCovarMatrix( const Mat* samples, int nsamples, Mat& covar, Mat& mean, mean 1841 modules/core/include/opencv2/core.hpp InputOutputArray mean, int flags, int ctype = CV_64F); mean 1844 modules/core/include/opencv2/core.hpp CV_EXPORTS_W void PCACompute(InputArray data, InputOutputArray mean, mean 1848 modules/core/include/opencv2/core.hpp CV_EXPORTS_W void PCACompute(InputArray data, InputOutputArray mean, mean 1852 modules/core/include/opencv2/core.hpp CV_EXPORTS_W void PCAProject(InputArray data, InputArray mean, mean 1856 modules/core/include/opencv2/core.hpp CV_EXPORTS_W void PCABackProject(InputArray data, InputArray mean, mean 2154 modules/core/include/opencv2/core.hpp CV_EXPORTS_W void randn(InputOutputArray dst, InputArray mean, InputArray stddev); mean 2258 modules/core/include/opencv2/core.hpp PCA(InputArray data, InputArray mean, int flags, int maxComponents = 0); mean 2270 modules/core/include/opencv2/core.hpp PCA(InputArray data, InputArray mean, int flags, double retainedVariance); mean 2292 modules/core/include/opencv2/core.hpp PCA& operator()(InputArray data, InputArray mean, int flags, int maxComponents = 0); mean 2305 modules/core/include/opencv2/core.hpp PCA& operator()(InputArray data, InputArray mean, int flags, double retainedVariance); mean 2369 modules/core/include/opencv2/core.hpp Mat mean; //!< mean value subtracted before the projection and added after the back projection mean 2436 modules/core/include/opencv2/core.hpp static Mat subspaceProject(InputArray W, InputArray mean, InputArray src); mean 2437 modules/core/include/opencv2/core.hpp static Mat subspaceReconstruct(InputArray W, InputArray mean, InputArray src); mean 1416 modules/core/include/opencv2/core/core_c.h CVAPI(void) cvCalcPCA( const CvArr* data, CvArr* mean, mean 1419 modules/core/include/opencv2/core/core_c.h CVAPI(void) cvProjectPCA( const CvArr* data, const CvArr* mean, mean 1422 modules/core/include/opencv2/core/core_c.h CVAPI(void) cvBackProjectPCA( const CvArr* proj, const CvArr* mean, mean 1443 modules/core/include/opencv2/core/core_c.h CVAPI(void) cvAvgSdv( const CvArr* arr, CvScalar* mean, CvScalar* std_dev, mean 108 modules/core/misc/java/test/CoreTest.java Mat mean = new Mat(1, matSize, CvType.CV_64FC1); mean 110 modules/core/misc/java/test/CoreTest.java Core.calcCovarMatrix(gray0_32f, covar, mean, Core.COVAR_ROWS | Core.COVAR_NORMAL); mean 113 modules/core/misc/java/test/CoreTest.java assertMatEqual(gray0_64f_1d, mean, EPS); mean 118 modules/core/misc/java/test/CoreTest.java Mat mean = new Mat(1, matSize, CvType.CV_32F); mean 120 modules/core/misc/java/test/CoreTest.java Core.calcCovarMatrix(gray0_32f, covar, mean, Core.COVAR_ROWS | Core.COVAR_NORMAL, CvType.CV_32F); mean 123 modules/core/misc/java/test/CoreTest.java assertMatEqual(gray0_32f_1d, mean, EPS); mean 941 modules/core/misc/java/test/CoreTest.java Mat mean = new Mat(1, matSize, CvType.CV_32F); mean 942 modules/core/misc/java/test/CoreTest.java Core.calcCovarMatrix(grayRnd_32f, covar, mean, Core.COVAR_ROWS | Core.COVAR_NORMAL, CvType.CV_32F); mean 974 modules/core/misc/java/test/CoreTest.java Scalar mean = Core.mean(makeMask(gray128)); mean 976 modules/core/misc/java/test/CoreTest.java assertScalarEqual(new Scalar(64), mean, EPS); mean 983 modules/core/misc/java/test/CoreTest.java Scalar mean1 = Core.mean(grayRnd, mask1); mean 984 modules/core/misc/java/test/CoreTest.java Scalar mean2 = Core.mean(grayRnd, mask2); mean 985 modules/core/misc/java/test/CoreTest.java Scalar mean = Core.mean(grayRnd, gray1); mean 987 modules/core/misc/java/test/CoreTest.java assertScalarEqual(mean, new Scalar(0.5 * (mean1.val[0] + mean2.val[0])), EPS); mean 991 modules/core/misc/java/test/CoreTest.java MatOfDouble mean = new MatOfDouble(); mean 994 modules/core/misc/java/test/CoreTest.java Core.meanStdDev(rgbLena, mean, stddev); mean 1001 modules/core/misc/java/test/CoreTest.java assertArrayEquals(expectedMean, mean.toArray(), EPS); mean 1011 modules/core/misc/java/test/CoreTest.java MatOfDouble mean = new MatOfDouble(); mean 1014 modules/core/misc/java/test/CoreTest.java Core.meanStdDev(grayRnd, mean, stddev, mask); mean 1019 modules/core/misc/java/test/CoreTest.java assertArrayEquals(expectedMean, mean.toArray(), EPS); mean 1288 modules/core/misc/java/test/CoreTest.java Mat mean = new Mat(1, 4, CvType.CV_32F) { mean 1305 modules/core/misc/java/test/CoreTest.java Core.PCABackProject(data, mean, vectors, result); mean 1325 modules/core/misc/java/test/CoreTest.java Mat mean = new Mat(); mean 1328 modules/core/misc/java/test/CoreTest.java Core.PCACompute(data, mean, vectors); mean 1340 modules/core/misc/java/test/CoreTest.java assertMatEqual(mean_truth, mean, EPS); mean 1352 modules/core/misc/java/test/CoreTest.java Mat mean = new Mat(); mean 1355 modules/core/misc/java/test/CoreTest.java Core.PCACompute(data, mean, vectors, 1); mean 1367 modules/core/misc/java/test/CoreTest.java assertMatEqual(mean_truth, mean, EPS); mean 1372 modules/core/misc/java/test/CoreTest.java Mat mean = new Mat(1, 4, CvType.CV_32F) { mean 1391 modules/core/misc/java/test/CoreTest.java Core.PCAProject(data, mean, vectors, result); mean 1549 modules/core/misc/java/test/CoreTest.java assertEquals(100., Core.mean(gray0).val[0], 23 / 2); mean 703 modules/core/perf/opencl/perf_arithm.cpp Scalar mean, stddev; mean 706 modules/core/perf/opencl/perf_arithm.cpp OCL_TEST_CYCLE() cv::meanStdDev(src, mean, stddev); mean 708 modules/core/perf/opencl/perf_arithm.cpp double mean0 = mean[0], mean1 = mean[1], mean2 = mean[2], mean3 = mean[3]; mean 733 modules/core/perf/opencl/perf_arithm.cpp Scalar mean, stddev; mean 736 modules/core/perf/opencl/perf_arithm.cpp OCL_TEST_CYCLE() cv::meanStdDev(src, mean, stddev, mask); mean 738 modules/core/perf/opencl/perf_arithm.cpp double mean0 = mean[0], mean1 = mean[1], mean2 = mean[2], mean3 = mean[3]; mean 24 modules/core/perf/perf_stat.cpp PERF_TEST_P(Size_MatType, mean, TYPICAL_MATS) mean 34 modules/core/perf/perf_stat.cpp TEST_CYCLE() s = mean(src); mean 50 modules/core/perf/perf_stat.cpp TEST_CYCLE() s = mean(src, mask); mean 61 modules/core/perf/perf_stat.cpp Scalar mean; mean 64 modules/core/perf/perf_stat.cpp declare.in(src, WARMUP_RNG).out(mean, dev); mean 66 modules/core/perf/perf_stat.cpp TEST_CYCLE() meanStdDev(src, mean, dev); mean 68 modules/core/perf/perf_stat.cpp SANITY_CHECK(mean, 1e-5, ERROR_RELATIVE); mean 79 modules/core/perf/perf_stat.cpp Scalar mean; mean 82 modules/core/perf/perf_stat.cpp declare.in(src, WARMUP_RNG).in(mask).out(mean, dev); mean 84 modules/core/perf/perf_stat.cpp TEST_CYCLE() meanStdDev(src, mean, dev, mask); mean 86 modules/core/perf/perf_stat.cpp SANITY_CHECK(mean, 1e-5); mean 174 modules/core/src/lda.cpp Mat mean = _mean.getMat(); mean 185 modules/core/src/lda.cpp if(!mean.empty() && (mean.total() != (size_t) d)) { mean 186 modules/core/src/lda.cpp String error_message = format("Wrong mean shape for the given data matrix. Expected %d, but was %d.", d, mean.total()); mean 194 modules/core/src/lda.cpp if(!mean.empty()) { mean 197 modules/core/src/lda.cpp subtract(r_i, mean.reshape(1,1), r_i); mean 212 modules/core/src/lda.cpp Mat mean = _mean.getMat(); mean 223 modules/core/src/lda.cpp if(!mean.empty() && (mean.total() != (size_t) W.rows)) { mean 224 modules/core/src/lda.cpp String error_message = format("Wrong mean shape for the given eigenvector matrix. Expected %d, but was %d.", W.cols, mean.total()); mean 234 modules/core/src/lda.cpp if(!mean.empty()) { mean 237 modules/core/src/lda.cpp add(r_i, mean.reshape(1,1), r_i); mean 2366 modules/core/src/matmul.cpp Mat mean; mean 2373 modules/core/src/matmul.cpp mean = _mean.reshape(1, 1); mean 2376 modules/core/src/matmul.cpp _mean.convertTo(mean, ctype); mean 2377 modules/core/src/matmul.cpp mean = mean.reshape(1, 1); mean 2395 modules/core/src/matmul.cpp calcCovarMatrix( _data, covar, mean, (flags & ~(CV_COVAR_ROWS|CV_COVAR_COLS)) | CV_COVAR_ROWS, ctype ); mean 2397 modules/core/src/matmul.cpp _mean = mean.reshape(1, size.height); mean 2424 modules/core/src/matmul.cpp Mat mean; mean 2429 modules/core/src/matmul.cpp if( mean.type() != ctype ) mean 2431 modules/core/src/matmul.cpp mean = _mean.getMat(); mean 2432 modules/core/src/matmul.cpp _mean.create(mean.size(), ctype); mean 2434 modules/core/src/matmul.cpp mean.convertTo(tmp, ctype); mean 2435 modules/core/src/matmul.cpp mean = tmp; mean 2438 modules/core/src/matmul.cpp mean = _mean.getMat().reshape(1, 1); mean 2441 modules/core/src/matmul.cpp calcCovarMatrix( _data, _covar, mean, (flags & ~(CV_COVAR_ROWS|CV_COVAR_COLS)) | CV_COVAR_ROWS, ctype ); mean 2445 modules/core/src/matmul.cpp mean = mean.reshape(1, size.height); mean 2446 modules/core/src/matmul.cpp mean.copyTo(_mean); mean 2451 modules/core/src/matmul.cpp Mat data = _src.getMat(), mean; mean 2461 modules/core/src/matmul.cpp mean = _mean.getMat(); mean 2462 modules/core/src/matmul.cpp ctype = std::max(std::max(CV_MAT_DEPTH(ctype >= 0 ? ctype : type), mean.depth()), CV_32F); mean 2463 modules/core/src/matmul.cpp CV_Assert( mean.size() == size ); mean 2464 modules/core/src/matmul.cpp if( mean.type() != ctype ) mean 2466 modules/core/src/matmul.cpp _mean.create(mean.size(), ctype); mean 2468 modules/core/src/matmul.cpp mean.convertTo(tmp, ctype); mean 2469 modules/core/src/matmul.cpp mean = tmp; mean 2476 modules/core/src/matmul.cpp mean = _mean.getMat(); mean 2480 modules/core/src/matmul.cpp mean, (flags & CV_COVAR_SCALE) != 0 ? 1./nsamples : 1, ctype ); mean 3332 modules/core/src/matmul.cpp cv::Mat cov0 = cv::cvarrToMat(covarr), cov = cov0, mean0, mean; mean 3336 modules/core/src/matmul.cpp mean = mean0 = cv::cvarrToMat(avgarr); mean 3342 modules/core/src/matmul.cpp cv::calcCovarMatrix( data, cov, mean, flags, cov.type() ); mean 3349 modules/core/src/matmul.cpp cv::calcCovarMatrix( &data[0], count, cov, mean, flags, cov.type() ); mean 3352 modules/core/src/matmul.cpp if( mean.data != mean0.data && mean0.data ) mean 3353 modules/core/src/matmul.cpp mean.convertTo(mean0, mean0.type()); mean 3390 modules/core/src/matmul.cpp cv::Mat mean = mean0, evals = evals0, evects = evects0; mean 3393 modules/core/src/matmul.cpp pca.mean = mean; mean 3397 modules/core/src/matmul.cpp pca(data, (flags & CV_PCA_USE_AVG) ? mean : cv::Mat(), mean 3400 modules/core/src/matmul.cpp if( pca.mean.size() == mean.size() ) mean 3401 modules/core/src/matmul.cpp pca.mean.convertTo( mean, mean.type() ); mean 3404 modules/core/src/matmul.cpp cv::Mat temp; pca.mean.convertTo( temp, mean.type() ); mean 3405 modules/core/src/matmul.cpp transpose( temp, mean ); mean 3428 modules/core/src/matmul.cpp CV_Assert( mean0.data == mean.data ); mean 3436 modules/core/src/matmul.cpp cv::Mat data = cv::cvarrToMat(data_arr), mean = cv::cvarrToMat(avg_arr); mean 3440 modules/core/src/matmul.cpp pca.mean = mean; mean 3442 modules/core/src/matmul.cpp if( mean.rows == 1 ) mean 3467 modules/core/src/matmul.cpp cv::Mat data = cv::cvarrToMat(proj_arr), mean = cv::cvarrToMat(avg_arr); mean 3471 modules/core/src/matmul.cpp pca.mean = mean; mean 3473 modules/core/src/matmul.cpp if( mean.rows == 1 ) mean 98 modules/core/src/pca.cpp mean.create( mean_sz, ctype ); mean 105 modules/core/src/pca.cpp _mean.convertTo(mean, ctype); mean 109 modules/core/src/pca.cpp calcCovarMatrix( data, covar, mean, covar_flags, ctype ); mean 116 modules/core/src/pca.cpp Mat tmp_data, tmp_mean = repeat(mean, data.rows/mean.rows, data.cols/mean.cols); mean 117 modules/core/src/pca.cpp if( data.type() != ctype || tmp_mean.data == mean.data ) mean 158 modules/core/src/pca.cpp fs << "mean" << mean; mean 169 modules/core/src/pca.cpp cv::read(fs["mean"], mean); mean 235 modules/core/src/pca.cpp mean.create( mean_sz, ctype ); mean 242 modules/core/src/pca.cpp _mean.convertTo(mean, ctype); mean 245 modules/core/src/pca.cpp calcCovarMatrix( data, covar, mean, covar_flags, ctype ); mean 252 modules/core/src/pca.cpp Mat tmp_data, tmp_mean = repeat(mean, data.rows/mean.rows, data.cols/mean.cols); mean 253 modules/core/src/pca.cpp if( data.type() != ctype || tmp_mean.data == mean.data ) mean 295 modules/core/src/pca.cpp CV_Assert( !mean.empty() && !eigenvectors.empty() && mean 296 modules/core/src/pca.cpp ((mean.rows == 1 && mean.cols == data.cols) || (mean.cols == 1 && mean.rows == data.rows))); mean 297 modules/core/src/pca.cpp Mat tmp_data, tmp_mean = repeat(mean, data.rows/mean.rows, data.cols/mean.cols); mean 298 modules/core/src/pca.cpp int ctype = mean.type(); mean 299 modules/core/src/pca.cpp if( data.type() != ctype || tmp_mean.data == mean.data ) mean 309 modules/core/src/pca.cpp if( mean.rows == 1 ) mean 325 modules/core/src/pca.cpp CV_Assert( !mean.empty() && !eigenvectors.empty() && mean 326 modules/core/src/pca.cpp ((mean.rows == 1 && eigenvectors.rows == data.cols) || mean 327 modules/core/src/pca.cpp (mean.cols == 1 && eigenvectors.rows == data.rows))); mean 330 modules/core/src/pca.cpp data.convertTo(tmp_data, mean.type()); mean 331 modules/core/src/pca.cpp if( mean.rows == 1 ) mean 333 modules/core/src/pca.cpp tmp_mean = repeat(mean, data.rows, 1); mean 338 modules/core/src/pca.cpp tmp_mean = repeat(mean, 1, data.cols); mean 352 modules/core/src/pca.cpp void cv::PCACompute(InputArray data, InputOutputArray mean, mean 356 modules/core/src/pca.cpp pca(data, mean, 0, maxComponents); mean 357 modules/core/src/pca.cpp pca.mean.copyTo(mean); mean 361 modules/core/src/pca.cpp void cv::PCACompute(InputArray data, InputOutputArray mean, mean 365 modules/core/src/pca.cpp pca(data, mean, 0, retainedVariance); mean 366 modules/core/src/pca.cpp pca.mean.copyTo(mean); mean 370 modules/core/src/pca.cpp void cv::PCAProject(InputArray data, InputArray mean, mean 374 modules/core/src/pca.cpp pca.mean = mean.getMat(); mean 379 modules/core/src/pca.cpp void cv::PCABackProject(InputArray data, InputArray mean, mean 383 modules/core/src/pca.cpp pca.mean = mean.getMat(); mean 410 modules/core/src/rand.cpp randnScale_( const float* src, T* dst, int len, int cn, const PT* mean, const PT* stddev, bool stdmtx ) mean 417 modules/core/src/rand.cpp PT b = mean[0], a = stddev[0]; mean 425 modules/core/src/rand.cpp dst[k] = saturate_cast<T>(src[k]*stddev[k] + mean[k]); mean 434 modules/core/src/rand.cpp PT s = mean[j]; mean 444 modules/core/src/rand.cpp const float* mean, const float* stddev, bool stdmtx ) mean 445 modules/core/src/rand.cpp { randnScale_(src, dst, len, cn, mean, stddev, stdmtx); } mean 448 modules/core/src/rand.cpp const float* mean, const float* stddev, bool stdmtx ) mean 449 modules/core/src/rand.cpp { randnScale_(src, dst, len, cn, mean, stddev, stdmtx); } mean 452 modules/core/src/rand.cpp const float* mean, const float* stddev, bool stdmtx ) mean 453 modules/core/src/rand.cpp { randnScale_(src, dst, len, cn, mean, stddev, stdmtx); } mean 456 modules/core/src/rand.cpp const float* mean, const float* stddev, bool stdmtx ) mean 457 modules/core/src/rand.cpp { randnScale_(src, dst, len, cn, mean, stddev, stdmtx); } mean 460 modules/core/src/rand.cpp const float* mean, const float* stddev, bool stdmtx ) mean 461 modules/core/src/rand.cpp { randnScale_(src, dst, len, cn, mean, stddev, stdmtx); } mean 464 modules/core/src/rand.cpp const float* mean, const float* stddev, bool stdmtx ) mean 465 modules/core/src/rand.cpp { randnScale_(src, dst, len, cn, mean, stddev, stdmtx); } mean 468 modules/core/src/rand.cpp const double* mean, const double* stddev, bool stdmtx ) mean 469 modules/core/src/rand.cpp { randnScale_(src, dst, len, cn, mean, stddev, stdmtx); } mean 504 modules/core/src/rand.cpp uchar* mean = 0; mean 628 modules/core/src/rand.cpp mean = _param1.ptr(); mean 633 modules/core/src/rand.cpp mean = (uchar*)parambuf; mean 638 modules/core/src/rand.cpp mean[j] = mean[j - n1*esz]; mean 723 modules/core/src/rand.cpp scaleFunc(nbuf, ptr, len, cn, mean, stddev, stdmtx); mean 742 modules/core/src/rand.cpp void cv::randn(InputOutputArray dst, InputArray mean, InputArray stddev) mean 744 modules/core/src/rand.cpp theRNG().fill(dst, RNG::NORMAL, mean, stddev); mean 1509 modules/core/src/stat.cpp Scalar mean, stddev; mean 1577 modules/core/src/stat.cpp mean = funcs[ddepth - CV_32S](Mat(1, groups, dtype, dbm.ptr())); mean 1590 modules/core/src/stat.cpp mean[i] *= total; mean 1591 modules/core/src/stat.cpp stddev[i] = std::sqrt(std::max(stddev[i] * total - mean[i] * mean[i] , 0.)); mean 1596 modules/core/src/stat.cpp const double * const sptr = j == 0 ? &mean[0] : &stddev[0]; mean 1642 modules/core/src/stat.cpp Mat mean, stddev; mean 1648 modules/core/src/stat.cpp mean = _mean.getMat(); mean 1649 modules/core/src/stat.cpp dcn_mean = (int)mean.total(); mean 1650 modules/core/src/stat.cpp pmean = mean.ptr<Ipp64f>(); mean 3821 modules/core/src/stat.cpp cv::Scalar mean = !maskarr ? cv::mean(img) : cv::mean(img, cv::cvarrToMat(maskarr)); mean 3828 modules/core/src/stat.cpp mean = cv::Scalar(mean[coi-1]); mean 3831 modules/core/src/stat.cpp return mean; mean 3838 modules/core/src/stat.cpp cv::Scalar mean, sdv; mean 3844 modules/core/src/stat.cpp cv::meanStdDev(cv::cvarrToMat(imgarr, false, true, 1), mean, sdv, mask ); mean 3852 modules/core/src/stat.cpp mean = cv::Scalar(mean[coi-1]); mean 3858 modules/core/src/stat.cpp *(cv::Scalar*)_mean = mean; mean 1115 modules/core/test/test_arithm.cpp dst.at<Scalar>(0,0) = cv::mean(src[0], mask); mean 1120 modules/core/test/test_arithm.cpp dst.at<Scalar>(0,0) = cvtest::mean(src[0], mask); mean 1143 modules/core/test/test_arithm.cpp dst.at<Scalar>(0,0) = cvtest::mean(src[0])*(double)src[0].total(); mean 1176 modules/core/test/test_arithm.cpp dst.at<int>(0,0) = saturate_cast<int>(cvtest::mean(temp)[0]/255*temp.total()); mean 1205 modules/core/test/test_arithm.cpp Scalar mean = cvtest::mean(src[0], mask); mean 1206 modules/core/test/test_arithm.cpp Scalar sqmean = cvtest::mean(temp, mask); mean 1212 modules/core/test/test_arithm.cpp sqmean[c] = std::sqrt(std::max(sqmean[c] - mean[c]*mean[c], 0.)); mean 1215 modules/core/test/test_arithm.cpp dst.at<Scalar>(0,0) = mean; mean 1817 modules/core/test/test_arithm.cpp ASSERT_FLOAT_EQ((float)nz/n, (float)(mean(test)[0])); mean 134 modules/core/test/test_countnonzero.cpp double mean = 0.0, sigma = 1.0; mean 140 modules/core/test/test_countnonzero.cpp rng.fill(src, RNG::NORMAL, Scalar::all(mean), Scalar::all(sigma)); mean 533 modules/core/test/test_mat.cpp err = cvtest::norm( rPCA.mean, lPCA.mean, CV_RELATIVE_L2 ); mean 460 modules/core/test/test_math.cpp Scalar r = cvtest::mean(diag); mean 657 modules/cudaarithm/include/opencv2/cudaarithm.hpp CV_EXPORTS void meanStdDev(InputArray mtx, Scalar& mean, Scalar& stddev); mean 167 modules/cudaarithm/src/reductions.cpp void cv::cuda::meanStdDev(InputArray _src, Scalar& mean, Scalar& stddev) mean 179 modules/cudaarithm/src/reductions.cpp mean = Scalar(vals[0]); mean 997 modules/cudaarithm/test/test_reductions.cpp cv::Scalar mean; mean 999 modules/cudaarithm/test/test_reductions.cpp cv::cuda::meanStdDev(loadMat(src, useRoi), mean, stddev); mean 1008 modules/cudaarithm/test/test_reductions.cpp cv::Scalar mean; mean 1010 modules/cudaarithm/test/test_reductions.cpp cv::cuda::meanStdDev(loadMat(src, useRoi), mean, stddev); mean 1016 modules/cudaarithm/test/test_reductions.cpp EXPECT_SCALAR_NEAR(mean_gold, mean, 1e-5); mean 58 modules/cudabgsegm/src/mog.cpp void mog_gpu(PtrStepSzb frame, int cn, PtrStepSzb fgmask, PtrStepSzf weight, PtrStepSzf sortKey, PtrStepSzb mean, PtrStepSzb var, mean 61 modules/cudabgsegm/src/mog.cpp void getBackgroundImage_gpu(int cn, PtrStepSzf weight, PtrStepSzb mean, PtrStepSzb dst, int nmixtures, float backgroundRatio, cudaStream_t stream); mean 59 modules/cudabgsegm/src/mog2.cpp void mog2_gpu(PtrStepSzb frame, int cn, PtrStepSzb fgmask, PtrStepSzb modesUsed, PtrStepSzf weight, PtrStepSzf variance, PtrStepSzb mean, float alphaT, float prune, bool detectShadows, cudaStream_t stream); mean 60 modules/cudabgsegm/src/mog2.cpp void getBackgroundImage2_gpu(int cn, PtrStepSzb modesUsed, PtrStepSzf weight, PtrStepSzb mean, PtrStepSzb dst, cudaStream_t stream); mean 671 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType* mean = new DistanceType[veclen_]; mean 674 modules/flann/include/opencv2/flann/kmeans_index.h memset(mean,0,veclen_*sizeof(DistanceType)); mean 679 modules/flann/include/opencv2/flann/kmeans_index.h mean[j] += vec[j]; mean 684 modules/flann/include/opencv2/flann/kmeans_index.h mean[j] /= size_; mean 687 modules/flann/include/opencv2/flann/kmeans_index.h variance -= distance_(mean, ZeroIterator<ElementType>(), veclen_); mean 691 modules/flann/include/opencv2/flann/kmeans_index.h tmp = distance_(mean, dataset_[indices[i]], veclen_); mean 699 modules/flann/include/opencv2/flann/kmeans_index.h node->pivot = mean; mean 363 modules/imgcodecs/test/test_grfmt.cpp double actual_avg_diff = (double)mean(diff)[0]; mean 75 modules/imgproc/src/grabcut.cpp double* mean; mean 101 modules/imgproc/src/grabcut.cpp mean = coefs + componentsCount; mean 102 modules/imgproc/src/grabcut.cpp cov = mean + 3*componentsCount; mean 124 modules/imgproc/src/grabcut.cpp double* m = mean + 3*ci; mean 186 modules/imgproc/src/grabcut.cpp double* m = mean + 3*ci; mean 456 modules/imgproc/src/templmatch.cpp Scalar templMean = mean(templ); mean 464 modules/imgproc/src/templmatch.cpp templ_sum = (Vec4f)mean(templ); mean 988 modules/imgproc/src/templmatch.cpp templMean = mean(templ); mean 1293 modules/imgproc/src/thresh.cpp Mat mean; mean 1296 modules/imgproc/src/thresh.cpp mean = dst; mean 1299 modules/imgproc/src/thresh.cpp boxFilter( src, mean, src.type(), Size(blockSize, blockSize), mean 1302 modules/imgproc/src/thresh.cpp GaussianBlur( src, mean, Size(blockSize, blockSize), 0, 0, BORDER_REPLICATE ); mean 1320 modules/imgproc/src/thresh.cpp if( src.isContinuous() && mean.isContinuous() && dst.isContinuous() ) mean 1329 modules/imgproc/src/thresh.cpp const uchar* mdata = mean.ptr(i); mean 1481 modules/ml/include/opencv2/ml.hpp CV_EXPORTS void randMVNormal( InputArray mean, InputArray cov, int nsamples, OutputArray samples); mean 154 modules/ml/src/inner_functions.cpp Mat mean = _mean.getMat(), cov = _cov.getMat(); mean 155 modules/ml/src/inner_functions.cpp int dim = (int)mean.total(); mean 163 modules/ml/src/inner_functions.cpp int flags = mean.cols == 1 ? 0 : GEMM_3_T; mean 168 modules/ml/src/inner_functions.cpp gemm(sample, utmat, 1, mean, 1, sample, flags); mean 78 modules/ml/src/testset.cpp Mat mean = Mat::zeros(1, num_features, CV_32F); mean 82 modules/ml/src/testset.cpp randMVNormal( mean, cov, num_samples, _samples ); mean 160 modules/ml/test/test_gbttest.cpp float mean[] = {5.80226f, 12.68689f, 13.49095f, 13.19628f}; mean 165 modules/ml/test/test_gbttest.cpp if ( abs( current_error - mean[test_num]) > 6*sigma[test_num] ) mean 169 modules/ml/test/test_gbttest.cpp current_error, mean[test_num], 6*sigma[test_num] ); mean 75 modules/ml/test/test_mltests.cpp float mean = 0, sigma = 0; mean 78 modules/ml/test/test_mltests.cpp mean += res[k]; mean 80 modules/ml/test/test_mltests.cpp mean = mean /icount; mean 83 modules/ml/test/test_mltests.cpp sigma += (res[k] - mean)*(res[k] - mean); mean 86 modules/ml/test/test_mltests.cpp printf("%f, %f\n", mean, sigma); mean 95 modules/ml/test/test_mltests.cpp float mean, sigma; mean 102 modules/ml/test/test_mltests.cpp resultNode["mean"] >> mean; mean 108 modules/ml/test/test_mltests.cpp testCaseIdx, curErr, mean, abs( curErr - mean), coeff, coeff*sigma ); mean 109 modules/ml/test/test_mltests.cpp if ( abs( curErr - mean) > coeff*sigma ) mean 111 modules/ml/test/test_mltests.cpp ts->printf( cvtest::TS::LOG, "abs(%f - %f) > %f - OUT OF RANGE!\n", curErr, mean, coeff*sigma, coeff ); mean 835 modules/objdetect/src/haar.cpp double mean, variance_norm_factor; mean 853 modules/objdetect/src/haar.cpp mean = calc_sum(*cascade,p_offset)*cascade->inv_window_area; mean 856 modules/objdetect/src/haar.cpp variance_norm_factor = variance_norm_factor*cascade->inv_window_area - mean*mean; mean 181 modules/photo/src/merge.cpp Mat mean = Mat::zeros(size, CV_32F); mean 183 modules/photo/src/merge.cpp mean += splitted[c]; mean 185 modules/photo/src/merge.cpp mean /= channels; mean 189 modules/photo/src/merge.cpp Mat deviation = splitted[c] - mean; mean 132 modules/photo/src/tonemap.cpp float mean = expf(static_cast<float>(sum(log_img)[0]) / log_img.total()); mean 133 modules/photo/src/tonemap.cpp gray_img /= mean; mean 308 modules/photo/src/tonemap.cpp Scalar chan_mean = mean(img); mean 309 modules/photo/src/tonemap.cpp float gray_mean = static_cast<float>(mean(gray_img)[0]); mean 428 modules/shape/src/sc_dis.cpp meanDistance=(float)mean(disMatrix, mask)[0]; mean 202 modules/superres/test/test_superres.cpp cv::Scalar mssim = cv::mean(ssim_map); mean 133 modules/ts/include/opencv2/ts.hpp CV_EXPORTS Scalar mean(const Mat& src, const Mat& mask=Mat()); mean 232 modules/ts/include/opencv2/ts/ts_perf.hpp double mean; mean 643 modules/ts/src/ts_perf.cpp mean = 0; mean 1128 modules/ts/src/ts_perf.cpp if (fabs(metrics.mean) > 1e-6) mean 1129 modules/ts/src/ts_perf.cpp has_next = metrics.stddev > perf_stability_criteria * fabs(metrics.mean); mean 1183 modules/ts/src/ts_perf.cpp (grow || metrics.stddev > perf_stability_criteria * fabs(metrics.mean))) mean 1363 modules/ts/src/ts_perf.cpp double mean = 0; mean 1378 modules/ts/src/ts_perf.cpp double delta = x - mean; mean 1379 modules/ts/src/ts_perf.cpp mean += delta / n; mean 1380 modules/ts/src/ts_perf.cpp stddev += delta * (x - mean); mean 1383 modules/ts/src/ts_perf.cpp metrics.mean = mean; mean 1420 modules/ts/src/ts_perf.cpp double mean = metrics.mean * 1000.0f / metrics.frequency; mean 1423 modules/ts/src/ts_perf.cpp double percents = stddev / mean * 100.f; mean 1424 modules/ts/src/ts_perf.cpp printf("[ PERFSTAT ] (samples = %d, mean = %.2f, median = %.2f, stddev = %.2f (%.1f%%))\n", (int)metrics.samples, mean, median, stddev, percents); mean 1455 modules/ts/src/ts_perf.cpp RecordProperty("mean", cv::format("%.0f", m.mean).c_str()); mean 1550 modules/ts/src/ts_perf.cpp LOGD("mean =%11.0f = %.2fms", m.mean, m.mean * 1e3 / m.frequency); mean 462 modules/video/src/bgfg_gaussmix2.cpp const GMM* gmm, const float* mean, mean 468 modules/video/src/bgfg_gaussmix2.cpp for( int mode = 0; mode < nmodes; mode++, mean += nchannels ) mean 476 modules/video/src/bgfg_gaussmix2.cpp numerator += data[c] * mean[c]; mean 477 modules/video/src/bgfg_gaussmix2.cpp denominator += mean[c] * mean[c]; mean 492 modules/video/src/bgfg_gaussmix2.cpp float dD= a*mean[c] - data[c]; mean 568 modules/video/src/bgfg_gaussmix2.cpp float* mean = mean0 + ncols*nmixtures*nchannels*y; mean 573 modules/video/src/bgfg_gaussmix2.cpp for( int x = 0; x < ncols; x++, data += nchannels, gmm += nmixtures, mean += nmixtures*nchannels ) mean 584 modules/video/src/bgfg_gaussmix2.cpp float* mean_m = mean; mean 660 modules/video/src/bgfg_gaussmix2.cpp std::swap(mean[i*nchannels + c], mean[(i-1)*nchannels + c]); mean 708 modules/video/src/bgfg_gaussmix2.cpp mean[mode*nchannels + c] = data[c]; mean 723 modules/video/src/bgfg_gaussmix2.cpp std::swap(mean[i*nchannels + c], mean[(i-1)*nchannels + c]); mean 730 modules/video/src/bgfg_gaussmix2.cpp detectShadows && detectShadowGMM(data, nchannels, nmodes, gmm, mean, Tb, TB, tau) ? mean 872 modules/video/src/bgfg_gaussmix2.cpp const float* mean = reinterpret_cast<const float*>(gmm + frameSize.width*frameSize.height*nmixtures); mean 886 modules/video/src/bgfg_gaussmix2.cpp meanVal[chn] += gaussian.weight * mean[meanPosition + chn]; mean 136 modules/videostab/src/inpainting.cpp float mean, var; mean 149 modules/videostab/src/inpainting.cpp mean = 0; mean 161 modules/videostab/src/inpainting.cpp mean += pixels[n].intens = intensity(pixels[n].color); mean 168 modules/videostab/src/inpainting.cpp mean /= n; mean 170 modules/videostab/src/inpainting.cpp var += sqr(pixels[i].intens - mean); mean 31 samples/cpp/em.cpp Scalar mean(((i%N1)+1)*img.rows/(N1+1), mean 34 samples/cpp/em.cpp randn( samples_part, mean, sigma ); mean 206 samples/cpp/tutorial_code/HighGUI/video-input-psnr-ssim/video-input-psnr-ssim.cpp Scalar mssim = mean(ssim_map); // mssim = average of ssim map mean 298 samples/cpp/tutorial_code/gpu/gpu-basics-similarity/gpu-basics-similarity.cpp Scalar mssim = mean( ssim_map ); // mssim = average of ssim map mean 65 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp Point cntr = Point(static_cast<int>(pca_analysis.mean.at<double>(0, 0)), mean 66 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp static_cast<int>(pca_analysis.mean.at<double>(0, 1)));