Lines Matching full:total
186 int total = (int)planes[0].total(), maxsize = std::min(12*12*std::max(12/cn, 1), total); in add() local
197 for( int j = 0; j < total; j += maxsize ) in add()
199 int j2 = std::min(j + maxsize, total); in add()
234 convert_(const _Tp1* src, _Tp2* dst, size_t total, double alpha, double beta) in convert_() argument
238 for( i = 0; i < total; i++ ) in convert_()
241 for( i = 0; i < total; i++ ) in convert_()
244 for( i = 0; i < total; i++ ) in convert_()
249 convertTo(const _Tp* src, void* dst, int dtype, size_t total, double alpha, double beta) in convertTo() argument
254 convert_(src, (uchar*)dst, total, alpha, beta); in convertTo()
257 convert_(src, (schar*)dst, total, alpha, beta); in convertTo()
260 convert_(src, (ushort*)dst, total, alpha, beta); in convertTo()
263 convert_(src, (short*)dst, total, alpha, beta); in convertTo()
266 convert_(src, (int*)dst, total, alpha, beta); in convertTo()
269 convert_(src, (float*)dst, total, alpha, beta); in convertTo()
272 convert_(src, (double*)dst, total, alpha, beta); in convertTo()
301 size_t total = planes[0].total()*planes[0].channels(); in convert() local
312 convertTo((const uchar*)sptr, dptr, dtype, total, alpha, beta); in convert()
315 convertTo((const schar*)sptr, dptr, dtype, total, alpha, beta); in convert()
318 convertTo((const ushort*)sptr, dptr, dtype, total, alpha, beta); in convert()
321 convertTo((const short*)sptr, dptr, dtype, total, alpha, beta); in convert()
324 convertTo((const int*)sptr, dptr, dtype, total, alpha, beta); in convert()
327 convertTo((const float*)sptr, dptr, dtype, total, alpha, beta); in convert()
330 convertTo((const double*)sptr, dptr, dtype, total, alpha, beta); in convert()
347 size_t planeSize = planes[0].total()*src.elemSize(); in copy()
361 size_t j, k, elemSize = src.elemSize(), total = planes[0].total(); in copy() local
370 for( j = 0; j < total; j++, sptr += elemSize, dptr += elemSize ) in copy()
392 size_t j, k, elemSize = dst.elemSize(), planeSize = plane.total()*elemSize; in set()
422 size_t j, k, elemSize = dst.elemSize(), total = planes[0].total(); in set() local
430 for( j = 0; j < total; j++, dptr += elemSize ) in set()
449 size_t j, k, size0 = src.elemSize(), size1 = dst.elemSize(), total = planes[0].total(); in insert() local
456 for( j = 0; j < total; j++, sptr += size0, dptr += size1 ) in insert()
474 size_t j, k, size0 = src.elemSize(), size1 = dst.elemSize(), total = planes[0].total(); in extract() local
481 for( j = 0; j < total; j++, sptr += size0, dptr += size1 ) in extract()
511 randUniInt_(RNG& rng, _Tp* data, size_t total, int cn, const Scalar& scale, const Scalar& delta) in randUniInt_() argument
513 for( size_t i = 0; i < total; i += cn ) in randUniInt_()
523 randUniFlt_(RNG& rng, _Tp* data, size_t total, int cn, const Scalar& scale, const Scalar& delta) in randUniFlt_() argument
525 for( size_t i = 0; i < total; i += cn ) in randUniFlt_()
559 size_t total = plane.total()*cn; in randUni() local
566 randUniInt_(rng, plane.ptr<uchar>(), total, cn, scale, delta); in randUni()
569 randUniInt_(rng, plane.ptr<schar>(), total, cn, scale, delta); in randUni()
572 randUniInt_(rng, plane.ptr<ushort>(), total, cn, scale, delta); in randUni()
575 randUniInt_(rng, plane.ptr<short>(), total, cn, scale, delta); in randUni()
578 randUniInt_(rng, plane.ptr<int>(), total, cn, scale, delta); in randUni()
581 randUniFlt_(rng, plane.ptr<float>(), total, cn, scale, delta); in randUni()
584 randUniFlt_(rng, plane.ptr<double>(), total, cn, scale, delta); in randUni()
970 minMaxLoc_(const _Tp* src, size_t total, size_t startidx, in minMaxLoc_() argument
980 for( size_t i = 0; i < total; i++ ) in minMaxLoc_()
997 for( size_t i = 0; i < total; i++ ) in minMaxLoc_()
1049 size_t startidx = 1, total = planes[0].total(); in minMaxLoc() local
1056 for( i = 0; i < nplanes; i++, ++it, startidx += total ) in minMaxLoc()
1064 minMaxLoc_((const uchar*)sptr, total, startidx, in minMaxLoc()
1068 minMaxLoc_((const schar*)sptr, total, startidx, in minMaxLoc()
1072 minMaxLoc_((const ushort*)sptr, total, startidx, in minMaxLoc()
1076 minMaxLoc_((const short*)sptr, total, startidx, in minMaxLoc()
1080 minMaxLoc_((const int*)sptr, total, startidx, in minMaxLoc()
1084 minMaxLoc_((const float*)sptr, total, startidx, in minMaxLoc()
1088 minMaxLoc_((const double*)sptr, total, startidx, in minMaxLoc()
1111 normHamming(const uchar* src, size_t total, int cellSize) in normHamming() argument
1117 for( size_t i = 0; i < total; i++ ) in normHamming()
1128 norm_(const _Tp* src, size_t total, int cn, int normType, double startval, const uchar* mask) in norm_() argument
1133 total *= cn; in norm_()
1138 for( i = 0; i < total; i++ ) in norm_()
1143 for( i = 0; i < total; i++ ) in norm_()
1151 for( i = 0; i < total; i++ ) in norm_()
1156 for( i = 0; i < total; i++ ) in norm_()
1164 for( i = 0; i < total; i++ ) in norm_()
1172 for( i = 0; i < total; i++ ) in norm_()
1185 norm_(const _Tp* src1, const _Tp* src2, size_t total, int cn, int normType, double startval, const … in norm_() argument
1190 total *= cn; in norm_()
1195 for( i = 0; i < total; i++ ) in norm_()
1200 for( i = 0; i < total; i++ ) in norm_()
1208 for( i = 0; i < total; i++ ) in norm_()
1213 for( i = 0; i < total; i++ ) in norm_()
1221 for( i = 0; i < total; i++ ) in norm_()
1229 for( i = 0; i < total; i++ ) in norm_()
1259 size_t total = planes[0].total(); in norm() local
1265 result += normHamming(planes[0].ptr(), total, cellSize); in norm()
1278 size_t total = planes[0].total(); in norm() local
1291 result = norm_((const uchar*)sptr, total, cn, normType, result, mptr); in norm()
1294 result = norm_((const schar*)sptr, total, cn, normType, result, mptr); in norm()
1297 result = norm_((const ushort*)sptr, total, cn, normType, result, mptr); in norm()
1300 result = norm_((const short*)sptr, total, cn, normType, result, mptr); in norm()
1303 result = norm_((const int*)sptr, total, cn, normType, result, mptr); in norm()
1306 result = norm_((const float*)sptr, total, cn, normType, result, mptr); in norm()
1309 result = norm_((const double*)sptr, total, cn, normType, result, mptr); in norm()
1340 size_t total = planes[0].total(); in norm() local
1346 result += normHamming(planes[0].ptr(), total, cellSize); in norm()
1359 size_t total = planes[0].total(); in norm() local
1373 … result = norm_((const uchar*)sptr1, (const uchar*)sptr2, total, cn, normType, result, mptr); in norm()
1376 … result = norm_((const schar*)sptr1, (const schar*)sptr2, total, cn, normType, result, mptr); in norm()
1379 … result = norm_((const ushort*)sptr1, (const ushort*)sptr2, total, cn, normType, result, mptr); in norm()
1382 … result = norm_((const short*)sptr1, (const short*)sptr2, total, cn, normType, result, mptr); in norm()
1385 result = norm_((const int*)sptr1, (const int*)sptr2, total, cn, normType, result, mptr); in norm()
1388 … result = norm_((const float*)sptr1, (const float*)sptr2, total, cn, normType, result, mptr); in norm()
1391 … result = norm_((const double*)sptr1, (const double*)sptr2, total, cn, normType, result, mptr); in norm()
1405 … double diff = std::sqrt(cvtest::norm(_src1, _src2, NORM_L2SQR)/(_src1.total()*_src1.channels())); in PSNR()
1410 crossCorr_(const _Tp* src1, const _Tp* src2, size_t total) in crossCorr_() argument
1413 for( size_t i = 0; i < total; i++ ) in crossCorr_()
1425 size_t total = planes[0].total()*planes[0].channels(); in crossCorr() local
1438 result += crossCorr_((const uchar*)sptr1, (const uchar*)sptr2, total); in crossCorr()
1441 result += crossCorr_((const schar*)sptr1, (const schar*)sptr2, total); in crossCorr()
1444 result += crossCorr_((const ushort*)sptr1, (const ushort*)sptr2, total); in crossCorr()
1447 result += crossCorr_((const short*)sptr1, (const short*)sptr2, total); in crossCorr()
1450 result += crossCorr_((const int*)sptr1, (const int*)sptr2, total); in crossCorr()
1453 result += crossCorr_((const float*)sptr1, (const float*)sptr2, total); in crossCorr()
1456 result += crossCorr_((const double*)sptr1, (const double*)sptr2, total); in crossCorr()
1467 logicOp_(const uchar* src1, const uchar* src2, uchar* dst, size_t total, char c) in logicOp_() argument
1471 for( i = 0; i < total; i++ ) in logicOp_()
1474 for( i = 0; i < total; i++ ) in logicOp_()
1477 for( i = 0; i < total; i++ ) in logicOp_()
1482 logicOpS_(const uchar* src, const uchar* scalar, uchar* dst, size_t total, char c) in logicOpS_() argument
1487 for( i = 0; i < total; i += blockSize, dst += blockSize, src += blockSize ) in logicOpS_()
1489 size_t sz = MIN(total - i, blockSize); in logicOpS_()
1494 for( i = 0; i < total; i += blockSize, dst += blockSize, src += blockSize ) in logicOpS_()
1496 size_t sz = MIN(total - i, blockSize); in logicOpS_()
1502 for( i = 0; i < total; i += blockSize, dst += blockSize, src += blockSize ) in logicOpS_()
1504 size_t sz = MIN(total - i, blockSize); in logicOpS_()
1510 for( i = 0; i < total; i++ ) in logicOpS_()
1524 size_t total = planes[0].total()*planes[0].elemSize(); in logicOp() local
1533 logicOp_(sptr1, sptr2, dptr, total, op); in logicOp()
1546 size_t total = planes[0].total()*planes[0].elemSize(); in logicOp() local
1556 logicOpS_(sptr, (uchar*)&buf[0], dptr, total, op); in logicOp()
1562 compare_(const _Tp* src1, const _Tp* src2, uchar* dst, size_t total, int cmpop) in compare_() argument
1568 for( i = 0; i < total; i++ ) in compare_()
1572 for( i = 0; i < total; i++ ) in compare_()
1576 for( i = 0; i < total; i++ ) in compare_()
1580 for( i = 0; i < total; i++ ) in compare_()
1584 for( i = 0; i < total; i++ ) in compare_()
1588 for( i = 0; i < total; i++ ) in compare_()
1598 compareS_(const _Tp* src1, _WTp value, uchar* dst, size_t total, int cmpop) in compareS_() argument
1604 for( i = 0; i < total; i++ ) in compareS_()
1608 for( i = 0; i < total; i++ ) in compareS_()
1612 for( i = 0; i < total; i++ ) in compareS_()
1616 for( i = 0; i < total; i++ ) in compareS_()
1620 for( i = 0; i < total; i++ ) in compareS_()
1624 for( i = 0; i < total; i++ ) in compareS_()
1641 size_t total = planes[0].total(); in compare() local
1654 compare_((const uchar*)sptr1, (const uchar*)sptr2, dptr, total, cmpop); in compare()
1657 compare_((const schar*)sptr1, (const schar*)sptr2, dptr, total, cmpop); in compare()
1660 compare_((const ushort*)sptr1, (const ushort*)sptr2, dptr, total, cmpop); in compare()
1663 compare_((const short*)sptr1, (const short*)sptr2, dptr, total, cmpop); in compare()
1666 compare_((const int*)sptr1, (const int*)sptr2, dptr, total, cmpop); in compare()
1669 compare_((const float*)sptr1, (const float*)sptr2, dptr, total, cmpop); in compare()
1672 compare_((const double*)sptr1, (const double*)sptr2, dptr, total, cmpop); in compare()
1688 size_t total = planes[0].total(); in compare() local
1701 compareS_((const uchar*)sptr, ivalue, dptr, total, cmpop); in compare()
1704 compareS_((const schar*)sptr, ivalue, dptr, total, cmpop); in compare()
1707 compareS_((const ushort*)sptr, ivalue, dptr, total, cmpop); in compare()
1710 compareS_((const short*)sptr, ivalue, dptr, total, cmpop); in compare()
1713 compareS_((const int*)sptr, ivalue, dptr, total, cmpop); in compare()
1716 compareS_((const float*)sptr, value, dptr, total, cmpop); in compare()
1719 compareS_((const double*)sptr, value, dptr, total, cmpop); in compare()
1729 cmpUlpsInt_(const _Tp* src1, const _Tp* src2, size_t total, int imaxdiff, in cmpUlpsInt_() argument
1734 for( i = 0; i < total; i++ ) in cmpUlpsInt_()
1749 size_t total, int imaxdiff, in cmpUlpsInt_() argument
1754 for( i = 0; i < total; i++ ) in cmpUlpsInt_()
1769 cmpUlpsFlt_(const int* src1, const int* src2, size_t total, int imaxdiff, size_t startidx, size_t& … in cmpUlpsFlt_() argument
1774 for( i = 0; i < total; i++ ) in cmpUlpsFlt_()
1791 cmpUlpsFlt_(const int64* src1, const int64* src2, size_t total, int imaxdiff, size_t startidx, size… in cmpUlpsFlt_() argument
1796 for( i = 0; i < total; i++ ) in cmpUlpsFlt_()
1817 size_t total = planes[0].total()*planes[0].channels(); in cmpUlps() local
1824 for( i = 0; i < nplanes; i++, ++it, startidx += total ) in cmpUlps()
1833 …realmaxdiff = cmpUlpsInt_((const uchar*)sptr1, (const uchar*)sptr2, total, imaxDiff, startidx, idx… in cmpUlps()
1836 …realmaxdiff = cmpUlpsInt_((const schar*)sptr1, (const schar*)sptr2, total, imaxDiff, startidx, idx… in cmpUlps()
1839 …realmaxdiff = cmpUlpsInt_((const ushort*)sptr1, (const ushort*)sptr2, total, imaxDiff, startidx, i… in cmpUlps()
1842 …realmaxdiff = cmpUlpsInt_((const short*)sptr1, (const short*)sptr2, total, imaxDiff, startidx, idx… in cmpUlps()
1845 … realmaxdiff = cmpUlpsInt_((const int*)sptr1, (const int*)sptr2, total, imaxDiff, startidx, idx); in cmpUlps()
1848 … realmaxdiff = cmpUlpsFlt_((const int*)sptr1, (const int*)sptr2, total, imaxDiff, startidx, idx); in cmpUlps()
1851 …realmaxdiff = cmpUlpsFlt_((const int64*)sptr1, (const int64*)sptr2, total, imaxDiff, startidx, idx… in cmpUlps()
1867 checkInt_(const _Tp* a, size_t total, int imin, int imax, size_t startidx, size_t& idx) in checkInt_() argument
1869 for( size_t i = 0; i < total; i++ ) in checkInt_()
1882 checkFlt_(const _Tp* a, size_t total, double fmin, double fmax, size_t startidx, size_t& idx) in checkFlt_() argument
1884 for( size_t i = 0; i < total; i++ ) in checkFlt_()
1903 size_t total = plane.total()*plane.channels(); in check() local
1915 for( i = 0; i < nplanes; i++, ++it, startidx += total ) in check()
1922 checkInt_((const uchar*)aptr, total, imin, imax, startidx, idx); in check()
1925 checkInt_((const schar*)aptr, total, imin, imax, startidx, idx); in check()
1928 checkInt_((const ushort*)aptr, total, imin, imax, startidx, idx); in check()
1931 checkInt_((const short*)aptr, total, imin, imax, startidx, idx); in check()
1934 checkInt_((const int*)aptr, total, imin, imax, startidx, idx); in check()
1937 checkFlt_((const float*)aptr, total, fmin, fmax, startidx, idx); in check()
1940 checkFlt_((const double*)aptr, total, fmin, fmax, startidx, idx); in check()
1976 size_t total = planes[0].total()*planes[0].channels(), j = total; in cmpEps() local
1991 for( i = 0; i < nplanes; i++, ++it, startidx += total ) in cmpEps()
1999 … realmaxdiff = cmpUlpsInt_((const uchar*)sptr1, (const uchar*)sptr2, total, ilevel, startidx, idx); in cmpEps()
2002 … realmaxdiff = cmpUlpsInt_((const schar*)sptr1, (const schar*)sptr2, total, ilevel, startidx, idx); in cmpEps()
2005 …realmaxdiff = cmpUlpsInt_((const ushort*)sptr1, (const ushort*)sptr2, total, ilevel, startidx, idx… in cmpEps()
2008 … realmaxdiff = cmpUlpsInt_((const short*)sptr1, (const short*)sptr2, total, ilevel, startidx, idx); in cmpEps()
2011 … realmaxdiff = cmpUlpsInt_((const int*)sptr1, (const int*)sptr2, total, ilevel, startidx, idx); in cmpEps()
2014 for( j = 0; j < total; j++ ) in cmpEps()
2045 for( j = 0; j < total; j++ ) in cmpEps()
2124 if( a.total() == 1 ) in cmpEps2()
2273 transform_(const _Tp* sptr, _Tp* dptr, size_t total, int scn, int dcn, const double* mat) in transform_() argument
2275 for( size_t i = 0; i < total; i++, sptr += scn, dptr += dcn ) in transform_()
2330 size_t total = planes[0].total(); in transform() local
2341 transform_((const uchar*)sptr, (uchar*)dptr, total, scn, dcn, mat); in transform()
2344 transform_((const schar*)sptr, (schar*)dptr, total, scn, dcn, mat); in transform()
2347 transform_((const ushort*)sptr, (ushort*)dptr, total, scn, dcn, mat); in transform()
2350 transform_((const short*)sptr, (short*)dptr, total, scn, dcn, mat); in transform()
2353 transform_((const int*)sptr, (int*)dptr, total, scn, dcn, mat); in transform()
2356 transform_((const float*)sptr, (float*)dptr, total, scn, dcn, mat); in transform()
2359 transform_((const double*)sptr, (double*)dptr, total, scn, dcn, mat); in transform()
2368 minmax_(const _Tp* src1, const _Tp* src2, _Tp* dst, size_t total, char op) in minmax_() argument
2371 for( size_t i = 0; i < total; i++ ) in minmax_()
2374 for( size_t i = 0; i < total; i++ ) in minmax_()
2386 size_t total = planes[0].total()*planes[0].channels(); in minmax() local
2398 minmax_((const uchar*)sptr1, (const uchar*)sptr2, (uchar*)dptr, total, op); in minmax()
2401 minmax_((const schar*)sptr1, (const schar*)sptr2, (schar*)dptr, total, op); in minmax()
2404 minmax_((const ushort*)sptr1, (const ushort*)sptr2, (ushort*)dptr, total, op); in minmax()
2407 minmax_((const short*)sptr1, (const short*)sptr2, (short*)dptr, total, op); in minmax()
2410 minmax_((const int*)sptr1, (const int*)sptr2, (int*)dptr, total, op); in minmax()
2413 minmax_((const float*)sptr1, (const float*)sptr2, (float*)dptr, total, op); in minmax()
2416 minmax_((const double*)sptr1, (const double*)sptr2, (double*)dptr, total, op); in minmax()
2437 minmax_(const _Tp* src1, _Tp val, _Tp* dst, size_t total, char op) in minmax_() argument
2440 for( size_t i = 0; i < total; i++ ) in minmax_()
2443 for( size_t i = 0; i < total; i++ ) in minmax_()
2454 size_t total = planes[0].total()*planes[0].channels(); in minmax() local
2466 minmax_((const uchar*)sptr1, saturate_cast<uchar>(ival), (uchar*)dptr, total, op); in minmax()
2469 minmax_((const schar*)sptr1, saturate_cast<schar>(ival), (schar*)dptr, total, op); in minmax()
2472 minmax_((const ushort*)sptr1, saturate_cast<ushort>(ival), (ushort*)dptr, total, op); in minmax()
2475 minmax_((const short*)sptr1, saturate_cast<short>(ival), (short*)dptr, total, op); in minmax()
2478 minmax_((const int*)sptr1, saturate_cast<int>(ival), (int*)dptr, total, op); in minmax()
2481 minmax_((const float*)sptr1, saturate_cast<float>(val), (float*)dptr, total, op); in minmax()
2484 minmax_((const double*)sptr1, saturate_cast<double>(val), (double*)dptr, total, op); in minmax()
2505 muldiv_(const _Tp* src1, const _Tp* src2, _Tp* dst, size_t total, double scale, char op) in muldiv_() argument
2508 for( size_t i = 0; i < total; i++ ) in muldiv_()
2511 for( size_t i = 0; i < total; i++ ) in muldiv_()
2514 for( size_t i = 0; i < total; i++ ) in muldiv_()
2526 size_t total = planes[1].total()*planes[1].channels(); in muldiv() local
2538 muldiv_((const uchar*)sptr1, (const uchar*)sptr2, (uchar*)dptr, total, scale, op); in muldiv()
2541 muldiv_((const schar*)sptr1, (const schar*)sptr2, (schar*)dptr, total, scale, op); in muldiv()
2544 muldiv_((const ushort*)sptr1, (const ushort*)sptr2, (ushort*)dptr, total, scale, op); in muldiv()
2547 muldiv_((const short*)sptr1, (const short*)sptr2, (short*)dptr, total, scale, op); in muldiv()
2550 muldiv_((const int*)sptr1, (const int*)sptr2, (int*)dptr, total, scale, op); in muldiv()
2553 muldiv_((const float*)sptr1, (const float*)sptr2, (float*)dptr, total, scale, op); in muldiv()
2556 muldiv_((const double*)sptr1, (const double*)sptr2, (double*)dptr, total, scale, op); in muldiv()
2577 mean_(const _Tp* src, const uchar* mask, size_t total, int cn, Scalar& sum, int& nz) in mean_() argument
2581 nz += (int)total; in mean_()
2582 total *= cn; in mean_()
2583 for( size_t i = 0; i < total; i += cn ) in mean_()
2591 for( size_t i = 0; i < total; i++ ) in mean_()
2611 size_t total = planes[0].total(); in mean() local
2623 mean_((const uchar*)sptr, mptr, total, cn, sum, nz); in mean()
2626 mean_((const schar*)sptr, mptr, total, cn, sum, nz); in mean()
2629 mean_((const ushort*)sptr, mptr, total, cn, sum, nz); in mean()
2632 mean_((const short*)sptr, mptr, total, cn, sum, nz); in mean()
2635 mean_((const int*)sptr, mptr, total, cn, sum, nz); in mean()
2638 mean_((const float*)sptr, mptr, total, cn, sum, nz); in mean()
2641 mean_((const double*)sptr, mptr, total, cn, sum, nz); in mean()