norm 157 apps/traincascade/HOGfeatures.cpp void CvHOGEvaluator::integralHistogram(const Mat &img, vector<Mat> &histogram, Mat &norm, int nbins) const norm 218 apps/traincascade/HOGfeatures.cpp integral(grad, norm, grad.depth()); norm 29 apps/traincascade/HOGfeatures.h virtual void integralHistogram(const cv::Mat &img, std::vector<cv::Mat> &histogram, cv::Mat &norm, int nbins) const; norm 3590 modules/calib3d/src/calibration.cpp double c = t12(idx,0), nt = norm(t12, CV_L2); norm 3596 modules/calib3d/src/calibration.cpp double nw = norm(ww, CV_L2); norm 92 modules/calib3d/src/circlesgrid.cpp dists.at<float>(i, j) = (float)norm(points[i] - points[j]); norm 199 modules/calib3d/src/circlesgrid.cpp float angle = (float)(vec1.ddot(vec2) / (norm(vec1) * norm(vec2))); norm 237 modules/calib3d/src/circlesgrid.cpp tangentVectors[k] = diff * (1.0f / norm(diff)); norm 342 modules/calib3d/src/circlesgrid.cpp double dist1 = norm(sortedCorners[0] - sortedCorners[1]); norm 343 modules/calib3d/src/circlesgrid.cpp double dist2 = norm(sortedCorners[1] - sortedCorners[2]); norm 630 modules/calib3d/src/circlesgrid.cpp if (norm(vec1 - vec2) < parameters.minRNGEdgeSwitchDist || norm(vec1 + vec2) norm 871 modules/calib3d/src/circlesgrid.cpp double dist = norm(pt - keypoints[i]); norm 884 modules/calib3d/src/circlesgrid.cpp if (norm(keypoints[ptIdx] - pt) > parameters.minDistanceToAddKeypoint) norm 1120 modules/calib3d/src/circlesgrid.cpp if (norm(basis[0] - basis[1]) < minBasisDif) norm 1179 modules/calib3d/src/circlesgrid.cpp double dist = norm(vec); norm 1187 modules/calib3d/src/circlesgrid.cpp double dist1 = norm(keypoints[i] - keypoints[k]); norm 1188 modules/calib3d/src/circlesgrid.cpp double dist2 = norm(keypoints[j] - keypoints[k]); norm 172 modules/calib3d/src/dls.h double norm = 0.0; norm 179 modules/calib3d/src/dls.h norm = norm + std::abs(H[i][j]); norm 192 modules/calib3d/src/dls.h s = norm; norm 434 modules/calib3d/src/dls.h if (norm == 0.0) { norm 462 modules/calib3d/src/dls.h H[i][n1] = -r / (eps * norm); norm 535 modules/calib3d/src/dls.h vr = eps * norm * (std::abs(w) + std::abs(q) + std::abs(x) norm 642 modules/calib3d/src/fisheye.cpp double nw = norm(ww); norm 644 modules/calib3d/src/fisheye.cpp ww *= acos(fabs(t[0])/cv::norm(t))/nw; norm 772 modules/calib3d/src/fisheye.cpp change = norm(Vec4d(currentParam.f[0], currentParam.f[1], currentParam.c[0], currentParam.c[1]) - norm 774 modules/calib3d/src/fisheye.cpp / norm(Vec4d(currentParam.f[0], currentParam.f[1], currentParam.c[0], currentParam.c[1])); norm 1020 modules/calib3d/src/fisheye.cpp change = cv::norm(newTom - oldTom) / cv::norm(newTom); norm 1188 modules/calib3d/src/fisheye.cpp change = norm(param_innov)/norm(param_up); norm 1327 modules/calib3d/src/fisheye.cpp if (norm(R(Rect(2, 0, 1, 2))) < 1e-6) norm 1334 modules/calib3d/src/fisheye.cpp double sc = .5 * (norm(H.col(0)) + norm(H.col(1))); norm 1337 modules/calib3d/src/fisheye.cpp u1 = u1 / norm(u1); norm 1339 modules/calib3d/src/fisheye.cpp u2 = u2 / norm(u2); norm 138 modules/calib3d/src/five-point.cpp Evec /= norm(Evec); norm 135 modules/calib3d/src/homography_decomp.cpp if (norm(RtR, I, NORM_INF) > epsilon) norm 317 modules/calib3d/src/homography_decomp.cpp if( norm(S, NORM_INF) < epsilon) { norm 391 modules/calib3d/src/homography_decomp.cpp Vec3d na = npa / norm(npa); norm 392 modules/calib3d/src/homography_decomp.cpp Vec3d nb = npb / norm(npb); norm 108 modules/calib3d/src/levmarq.cpp double S = norm(r, NORM_L2SQR); norm 138 modules/calib3d/src/levmarq.cpp double Sd = norm(rd, NORM_L2SQR); norm 179 modules/calib3d/src/levmarq.cpp bool proceed = iter < maxIters && norm(d, NORM_INF) >= epsx && norm(r, NORM_INF) >= epsf; norm 101 modules/calib3d/src/p3p.cpp double norm; norm 105 modules/calib3d/src/p3p.cpp norm = sqrt(mu0 * mu0 + mv0 * mv0 + 1); norm 106 modules/calib3d/src/p3p.cpp mk0 = 1. / norm; mu0 *= mk0; mv0 *= mk0; norm 110 modules/calib3d/src/p3p.cpp norm = sqrt(mu1 * mu1 + mv1 * mv1 + 1); norm 111 modules/calib3d/src/p3p.cpp mk1 = 1. / norm; mu1 *= mk1; mv1 *= mk1; norm 115 modules/calib3d/src/p3p.cpp norm = sqrt(mu2 * mu2 + mv2 * mv2 + 1); norm 116 modules/calib3d/src/p3p.cpp mk2 = 1. / norm; mu2 *= mk2; mv2 *= mk2; norm 67 modules/calib3d/src/quadsubpix.cpp double dist = norm(Point2f((float)contours[i][j].x, (float)contours[i][j].y) - point); norm 104 modules/calib3d/src/quadsubpix.cpp double dist = norm(contour[i] - point); norm 232 modules/calib3d/src/quadsubpix.cpp double angle = acos(dir1.dot(dir2)/(norm(dir1)*norm(dir2))); norm 198 modules/calib3d/src/solvepnp.cpp err[i] = (float)norm( ipoints_ptr[i] - projpoints_ptr[i] ); norm 57 modules/calib3d/test/test_affine3.cpp ASSERT_EQ(0, cvtest::norm(cv::Mat(affine.matrix, false).colRange(0, 3).rowRange(0, 3) != expected, cv::NORM_L2)); norm 58 modules/calib3d/test/test_affine3.cpp ASSERT_EQ(0, cvtest::norm(cv::Mat(affine.linear()) != expected, cv::NORM_L2)); norm 80 modules/calib3d/test/test_affine3.cpp ASSERT_LT(cvtest::norm(diff, cv::NORM_INF), 1e-15); norm 106 modules/calib3d/test/test_affine3.cpp ASSERT_LT(cvtest::norm(va, vo, cv::NORM_L2), 1e-9); norm 111 modules/calib3d/test/test_affine3d_estimator.cpp if (cvtest::norm(aff_est, aff, NORM_INF) > thres) norm 164 modules/calib3d/test/test_affine3d_estimator.cpp if (cvtest::norm(aff_est, aff, NORM_INF) > thres) norm 218 modules/calib3d/test/test_cameracalibration.cpp theta0 = cvtest::norm( cvarrtomat(vec2), 0, CV_L2 ); norm 228 modules/calib3d/test/test_cameracalibration.cpp if( cvtest::norm(cvarrtomat(&test_mat[OUTPUT][3]), 0, CV_C) < 1000 ) norm 911 modules/calib3d/test/test_cameracalibration.cpp if( norm( principalPoint - goodPrincipalPoint ) > FLT_EPSILON ) norm 1115 modules/calib3d/test/test_cameracalibration.cpp err = cvtest::norm( dpdrot, valDpdrot, NORM_INF ); norm 1133 modules/calib3d/test/test_cameracalibration.cpp if( cvtest::norm( dpdt, valDpdt, NORM_INF ) > 0.2 ) norm 1156 modules/calib3d/test/test_cameracalibration.cpp if ( cvtest::norm( dpdf, valDpdf, NORM_L2 ) > 0.2 ) norm 1177 modules/calib3d/test/test_cameracalibration.cpp if ( cvtest::norm( dpdc, valDpdc, NORM_L2 ) > 0.2 ) norm 1196 modules/calib3d/test/test_cameracalibration.cpp if( cvtest::norm( dpddist, valDpddist, NORM_L2 ) > 0.3 ) norm 1484 modules/calib3d/test/test_cameracalibration.cpp if( cvtest::norm(R1t*R1 - eye33, NORM_L2) > 0.01 || norm 1485 modules/calib3d/test/test_cameracalibration.cpp cvtest::norm(R2t*R2 - eye33, NORM_L2) > 0.01 || norm 1508 modules/calib3d/test/test_cameracalibration.cpp if (fabs(tx - cvtest::norm(T, NORM_L2)) > 1e-5) norm 1559 modules/calib3d/test/test_cameracalibration.cpp if (cvtest::norm(triangulatedPoints, reprojectedPoints, NORM_L2) / sqrt((double)pointsCount) > requiredAccuracy) norm 1584 modules/calib3d/test/test_cameracalibration.cpp if (cvtest::norm(error, NORM_L2) > constraintAccuracy) norm 1905 modules/calib3d/test/test_cameracalibration.cpp ASSERT_LE(norm(res, res0, NORM_INF), 1e-1); norm 1945 modules/calib3d/test/test_cameracalibration.cpp ASSERT_LE(norm(res, res0, NORM_INF), 2); norm 78 modules/calib3d/test/test_cameracalibration_artificial.cpp *rot.ptr<Vec3d>(2) = ez * (1.0/norm(ez)); norm 177 modules/calib3d/test/test_cameracalibration_artificial.cpp if (norm(tvec_est - tvec) > eps* (norm(tvec) + dlt)) norm 186 modules/calib3d/test/test_cameracalibration_artificial.cpp ts->printf( cvtest::TS::LOG, "%d) norm(tvec_est - tvec) = %f, norm(tvec_exp) = %f \n", r, norm(tvec_est - tvec), norm(tvec)); norm 207 modules/calib3d/test/test_cameracalibration_artificial.cpp if (cvtest::norm(rmat_est, rmat, NORM_L2) > eps* (cvtest::norm(rmat, NORM_L2) + dlt)) norm 217 modules/calib3d/test/test_cameracalibration_artificial.cpp cvtest::norm(rmat_est, rmat, NORM_L2), cvtest::norm(rmat, NORM_L2)); norm 240 modules/calib3d/test/test_cameracalibration_artificial.cpp res += norm(uv_exp[i] - uv_est[i]); norm 89 modules/calib3d/test/test_chessboardgenerator.cpp float len = (float)norm(n); norm 101 modules/calib3d/test/test_chessboardgenerator.cpp float len_b1 = (float)norm(b1); norm 102 modules/calib3d/test/test_chessboardgenerator.cpp float len_b2 = (float)norm(b2); norm 202 modules/calib3d/test/test_chessboardgenerator.cpp float cbHalfWidth = static_cast<float>(norm(p) * sin( std::min(fovx, fovy) * 0.5 * CV_PI / 180)); norm 344 modules/calib3d/test/test_chesscorners.cpp tmp = norm( cur - mat(i + 1, j + 1) ); norm 348 modules/calib3d/test/test_chesscorners.cpp tmp = norm( cur - mat(i - 1, j + 1 ) ); norm 352 modules/calib3d/test/test_chesscorners.cpp tmp = norm( cur - mat(i + 1, j - 1) ); norm 356 modules/calib3d/test/test_chesscorners.cpp tmp = norm( cur - mat(i - 1, j - 1) ); norm 165 modules/calib3d/test/test_compose_rt.cpp if (norm(rvec3_exp, rvec3) > thres || norm(tvec3_exp, tvec3) > thres) norm 179 modules/calib3d/test/test_compose_rt.cpp if (norm(dr3_dr1, dr3dr1) > thres || norm(dt3_dr1, dt3dr1) > thres) norm 188 modules/calib3d/test/test_compose_rt.cpp if (norm(dr3_dr2, dr3dr2) > thres || norm(dt3_dr2, dt3dr2) > thres) norm 197 modules/calib3d/test/test_compose_rt.cpp if (norm(dr3_dt1, dr3dt1) > thres || norm(dt3_dt1, dt3dt1) > thres) norm 206 modules/calib3d/test/test_compose_rt.cpp if (norm(dr3_dt2, dr3dt2) > thres || norm(dt3_dt2, dt3dt2) > thres) norm 81 modules/calib3d/test/test_cornerssubpix.cpp double dist = norm(set1[i] - set2[j]); norm 114 modules/calib3d/test/test_decompose_projection.cpp if ( norm(origK, K, cv::NORM_INF) > thresh ) norm 120 modules/calib3d/test/test_decompose_projection.cpp if ( norm(origR, R, cv::NORM_INF) > thresh ) norm 126 modules/calib3d/test/test_decompose_projection.cpp if ( norm(origT, t, cv::NORM_INF) > thresh ) norm 183 modules/calib3d/test/test_fisheye.cpp dT *= 1e-9*cv::norm(T); norm 187 modules/calib3d/test/test_fisheye.cpp CV_Assert (cv::norm(x2 - xpred) < 1e-10); norm 192 modules/calib3d/test/test_fisheye.cpp dom *= 1e-9*cv::norm(om); norm 196 modules/calib3d/test/test_fisheye.cpp CV_Assert (cv::norm(x2 - xpred) < 1e-10); norm 201 modules/calib3d/test/test_fisheye.cpp df *= 1e-9*cv::norm(f); norm 205 modules/calib3d/test/test_fisheye.cpp CV_Assert (cv::norm(x2 - xpred) < 1e-10); norm 210 modules/calib3d/test/test_fisheye.cpp dc *= 1e-9*cv::norm(c); norm 214 modules/calib3d/test/test_fisheye.cpp CV_Assert (cv::norm(x2 - xpred) < 1e-10); norm 219 modules/calib3d/test/test_fisheye.cpp dk *= 1e-9*cv::norm(k); norm 223 modules/calib3d/test/test_fisheye.cpp CV_Assert (cv::norm(x2 - xpred) < 1e-10); norm 228 modules/calib3d/test/test_fisheye.cpp dalpha *= 1e-9*cv::norm(f); norm 233 modules/calib3d/test/test_fisheye.cpp CV_Assert (cv::norm(x2 - xpred) < 1e-10); norm 307 modules/calib3d/test/test_fisheye.cpp if (cv::norm(R(cv::Rect(2, 0, 1, 2))) < 1e-6) norm 731 modules/calib3d/test/test_fundam.cpp theta0 = norm( vec2, CV_L2 ); norm 741 modules/calib3d/test/test_fundam.cpp double nrm = cvtest::norm(test_mat[REF_OUTPUT][3], CV_C); norm 1398 modules/calib3d/test/test_fundam.cpp double terr1 = cvtest::norm(Rt0.col(3) / norm(Rt0.col(3)) + test_mat[TEMP][3], NORM_L2); norm 1399 modules/calib3d/test/test_fundam.cpp double terr2 = cvtest::norm(Rt0.col(3) / norm(Rt0.col(3)) - test_mat[TEMP][3], NORM_L2); norm 122 modules/calib3d/test/test_homography.cpp diff = cvtest::norm(original, found, norm_type); norm 449 modules/calib3d/test/test_homography.cpp if (cv::norm(tmp_mat_3d, dst_mat_3d.col(k), NORM_TYPE[l]) - cv::norm(noise_2d.col(k), NORM_TYPE[l]) > max_2diff) norm 451 modules/calib3d/test/test_homography.cpp print_information_4(method, j, N, k, l, cv::norm(tmp_mat_3d, dst_mat_3d.col(k), NORM_TYPE[l]) - cv::norm(noise_2d.col(k), NORM_TYPE[l])); norm 459 modules/calib3d/test/test_homography.cpp if (cv::norm(dst_res_3d, dst_mat_3d, NORM_TYPE[l]) - cv::norm(noise_2d, NORM_TYPE[l]) > max_diff) norm 461 modules/calib3d/test/test_homography.cpp print_information_5(method, j, N, l, cv::norm(dst_res_3d, dst_mat_3d, NORM_TYPE[l]) - cv::norm(noise_2d, NORM_TYPE[l])); norm 521 modules/calib3d/test/test_homography.cpp double diff = cv::norm(dst_res_3d.col(k), dst_mat_3d.col(k), NORM_L2); norm 548 modules/calib3d/test/test_homography.cpp diff = cv::norm(dst_res_3d.col(k), dst_mat_3d.col(k), NORM_TYPE[l]); norm 550 modules/calib3d/test/test_homography.cpp if (diff - cv::norm(noise_2d, NORM_TYPE[l]) > max_2diff) norm 552 modules/calib3d/test/test_homography.cpp print_information_8(method, j, N, k, l, diff - cv::norm(noise_2d, NORM_TYPE[l])); norm 630 modules/calib3d/test/test_homography.cpp double err = norm(p2, p3, NORM_INF, mask2); norm 121 modules/calib3d/test/test_homography_decomp.cpp double rdist = norm(*riter, _R, NORM_INF); norm 122 modules/calib3d/test/test_homography_decomp.cpp double tdist = norm(*titer, _t, NORM_INF); norm 123 modules/calib3d/test/test_homography_decomp.cpp double ndist = norm(*niter, _n, NORM_INF); norm 145 modules/calib3d/test/test_solvepnp_ransac.cpp double rvecDiff = norm(rvec-trueRvec), tvecDiff = norm(tvec-trueTvec); norm 243 modules/calib3d/test/test_solvepnp_ransac.cpp double rvecDiff = norm(rvec-trueRvec), tvecDiff = norm(tvec-trueTvec); norm 310 modules/calib3d/test/test_solvepnp_ransac.cpp double rnorm = cvtest::norm(rvec1, rvec2, NORM_INF); norm 311 modules/calib3d/test/test_solvepnp_ransac.cpp double tnorm = cvtest::norm(tvec1, tvec2, NORM_INF); norm 338 modules/calib3d/test/test_solvepnp_ransac.cpp ASSERT_LE(norm(R, Mat_<double>(RF), NORM_INF), 1e-3); norm 339 modules/calib3d/test/test_solvepnp_ransac.cpp ASSERT_LE(norm(t, Mat_<double>(tF), NORM_INF), 1e-3); norm 282 modules/calib3d/test/test_stereomatching.cpp return 1.f/sqrt((float)pointsCount) * (float)cvtest::norm(computedDisp, groundTruthDisp, NORM_L2, mask); norm 87 modules/calib3d/test/test_undistort_points.cpp double diff = cvtest::norm(Mat(realUndistortedPoints), undistortedPoints, NORM_L2); norm 648 modules/core/include/opencv2/core.hpp CV_EXPORTS_W double norm(InputArray src1, int normType = NORM_L2, InputArray mask = noArray()); norm 656 modules/core/include/opencv2/core.hpp CV_EXPORTS_W double norm(InputArray src1, InputArray src2, norm 662 modules/core/include/opencv2/core.hpp CV_EXPORTS double norm( const SparseMat& src, int normType ); norm 265 modules/core/include/opencv2/core/matx.hpp template<typename _Tp, int m, int n> static double norm(const Matx<_Tp, m, n>& M); norm 266 modules/core/include/opencv2/core/matx.hpp template<typename _Tp, int m, int n> static double norm(const Matx<_Tp, m, n>& M, int normType); norm 1046 modules/core/include/opencv2/core/matx.hpp double nv = norm(v); norm 653 modules/core/include/opencv2/core/ocl.hpp explicit Image2D(const UMat &src, bool norm = false, bool alias = false); norm 664 modules/core/include/opencv2/core/ocl.hpp static bool isFormatSupported(int depth, int cn, bool norm); norm 1252 modules/core/misc/java/test/CoreTest.java double n = Core.norm(gray1); norm 1258 modules/core/misc/java/test/CoreTest.java double n = Core.norm(gray127, Core.NORM_INF); norm 1264 modules/core/misc/java/test/CoreTest.java double n = Core.norm(gray3, Core.NORM_L1, gray0); norm 1270 modules/core/misc/java/test/CoreTest.java double n = Core.norm(gray0, gray1); norm 1276 modules/core/misc/java/test/CoreTest.java double n = Core.norm(gray127, gray1, Core.NORM_INF); norm 1282 modules/core/misc/java/test/CoreTest.java double n = Core.norm(gray3, gray0, Core.NORM_L1, makeMask(gray0.clone(), 1)); norm 773 modules/core/perf/opencl/perf_arithm.cpp OCL_TEST_CYCLE() res = cv::norm(src1, normType); norm 793 modules/core/perf/opencl/perf_arithm.cpp OCL_TEST_CYCLE() res = cv::norm(src1, src2, normType); norm 813 modules/core/perf/opencl/perf_arithm.cpp OCL_TEST_CYCLE() res = cv::norm(src1, src2, normType | cv::NORM_RELATIVE); norm 14 modules/core/perf/perf_norm.cpp PERF_TEST_P(Size_MatType_NormType, norm, norm 31 modules/core/perf/perf_norm.cpp TEST_CYCLE() n = norm(src, normType); norm 54 modules/core/perf/perf_norm.cpp TEST_CYCLE() n = norm(src, normType, mask); norm 77 modules/core/perf/perf_norm.cpp TEST_CYCLE() n = norm(src1, src2, normType); norm 101 modules/core/perf/perf_norm.cpp TEST_CYCLE() n = norm(src1, src2, normType, mask); norm 163 modules/core/src/conjugate_gradient.cpp double r_norm_sq=norm(r); norm 6086 modules/core/src/convert.cpp scale = norm( _src, norm_type, _mask ); norm 334 modules/core/src/lda.cpp double norm = 0.0; norm 341 modules/core/src/lda.cpp norm = norm + std::abs(H[i][j]); norm 354 modules/core/src/lda.cpp s = norm; norm 596 modules/core/src/lda.cpp if (norm == 0.0) { norm 624 modules/core/src/lda.cpp H[i][n1] = -r / (eps * norm); norm 697 modules/core/src/lda.cpp vr = eps * norm * (std::abs(w) + std::abs(q) + std::abs(x) norm 5332 modules/core/src/matrix.cpp scale = norm( src, norm_type ); norm 5350 modules/core/src/matrix.cpp CV_Assert( abs(vecs[0].dot(vecs[1])) / (norm(vecs[0]) * norm(vecs[1])) <= FLT_EPSILON ); norm 5359 modules/core/src/matrix.cpp float _width = (float) norm(vecs[wd_i]); norm 5360 modules/core/src/matrix.cpp float _height = (float) norm(vecs[ht_i]); norm 5530 modules/core/src/ocl.cpp Impl(const UMat &src, bool norm, bool alias) norm 5534 modules/core/src/ocl.cpp init(src, norm, alias); norm 5543 modules/core/src/ocl.cpp static cl_image_format getImageFormat(int depth, int cn, bool norm) norm 5552 modules/core/src/ocl.cpp int channelType = norm ? channelTypesNorm[depth] : channelTypes[depth]; norm 5585 modules/core/src/ocl.cpp void init(const UMat &src, bool norm, bool alias) norm 5595 modules/core/src/ocl.cpp cl_image_format format = getImageFormat(depth, cn, norm); norm 5678 modules/core/src/ocl.cpp Image2D::Image2D(const UMat &src, bool norm, bool alias) norm 5680 modules/core/src/ocl.cpp p = new Impl(src, norm, alias); norm 5704 modules/core/src/ocl.cpp bool Image2D::isFormatSupported(int depth, int cn, bool norm) norm 5706 modules/core/src/ocl.cpp cl_image_format format = Impl::getImageFormat(depth, cn, norm); norm 2492 modules/core/src/stat.cpp static int norm##L##_##suffix(const type* src, const uchar* mask, ntype* r, int len, int cn) \ norm 2493 modules/core/src/stat.cpp { return norm##L##_(src, mask, r, len, cn); } \ norm 2670 modules/core/src/stat.cpp Ipp64f norm; norm 2671 modules/core/src/stat.cpp if( ippFuncC1(src.ptr(), (int)src.step[0], mask.ptr(), (int)mask.step[0], sz, &norm) >= 0 ) norm 2674 modules/core/src/stat.cpp return normType == NORM_L2SQR ? (double)(norm * norm) : (double)norm; norm 2780 modules/core/src/stat.cpp Ipp64f norm = (normType == NORM_L2 || normType == NORM_L2SQR) ? norm_array[0] * norm_array[0] : norm_array[0]; norm 2783 modules/core/src/stat.cpp norm = norm 2784 modules/core/src/stat.cpp normType == NORM_INF ? std::max(norm, norm_array[i]) : norm 2785 modules/core/src/stat.cpp normType == NORM_L1 ? norm + norm_array[i] : norm 2786 modules/core/src/stat.cpp normType == NORM_L2 || normType == NORM_L2SQR ? norm + norm_array[i] * norm_array[i] : norm 2790 modules/core/src/stat.cpp return normType == NORM_L2 ? (double)std::sqrt(norm) : (double)norm; norm 2858 modules/core/src/stat.cpp return norm(temp, normType); norm 3053 modules/core/src/stat.cpp Ipp64f norm; norm 3054 modules/core/src/stat.cpp if( ippFuncC1(src1.ptr(), (int)src1.step[0], src2.ptr(), (int)src2.step[0], mask.ptr(), (int)mask.step[0], sz, &norm) >= 0 ) norm 3057 modules/core/src/stat.cpp return normType == NORM_L2SQR ? (double)(norm * norm) : (double)norm; norm 3092 modules/core/src/stat.cpp Ipp64f norm; norm 3093 modules/core/src/stat.cpp if( ippFuncNoHint(src1.ptr(), (int)src1.step[0], src2.ptr(), (int)src2.step[0], sz, &norm) >= 0 ) norm 3096 modules/core/src/stat.cpp return (double)norm; norm 3102 modules/core/src/stat.cpp Ipp64f norm; norm 3103 modules/core/src/stat.cpp if( ippFuncHint(src1.ptr(), (int)src1.step[0], src2.ptr(), (int)src2.step[0], sz, &norm, ippAlgHintAccurate) >= 0 ) norm 3106 modules/core/src/stat.cpp return (double)norm; norm 3114 modules/core/src/stat.cpp return norm(_src1, _src2, normType & ~CV_RELATIVE, _mask)/(norm(_src2, normType, _mask) + DBL_EPSILON); norm 3163 modules/core/src/stat.cpp Ipp64f norm; norm 3164 modules/core/src/stat.cpp if( ippFuncC1(src1.ptr(), (int)src1.step[0], src2.ptr(), (int)src2.step[0], mask.ptr(), (int)mask.step[0], sz, &norm) >= 0 ) norm 3167 modules/core/src/stat.cpp return normType == NORM_L2SQR ? (double)(norm * norm) : (double)norm; norm 3199 modules/core/src/stat.cpp Ipp64f norm = norm 3205 modules/core/src/stat.cpp return normType == NORM_L2SQR ? (double)(norm * norm) : (double)norm; norm 3276 modules/core/src/stat.cpp Ipp64f norm = (normType == NORM_L2 || normType == NORM_L2SQR) ? norm_array[0] * norm_array[0] : norm_array[0]; norm 3279 modules/core/src/stat.cpp norm = norm 3280 modules/core/src/stat.cpp normType == NORM_INF ? std::max(norm, norm_array[i]) : norm 3281 modules/core/src/stat.cpp normType == NORM_L1 ? norm + norm_array[i] : norm 3282 modules/core/src/stat.cpp normType == NORM_L2 || normType == NORM_L2SQR ? norm + norm_array[i] * norm_array[i] : norm 3286 modules/core/src/stat.cpp return normType == NORM_L2 ? (double)std::sqrt(norm) : (double)norm; norm 3342 modules/core/src/stat.cpp return norm(temp, normType); norm 3788 modules/core/src/stat.cpp double diff = std::sqrt(norm(_src1, _src2, NORM_L2SQR)/(_src1.total()*_src1.channels())); norm 3897 modules/core/src/stat.cpp return !maskarr ? cv::norm(a, normType) : cv::norm(a, normType, mask); norm 3903 modules/core/src/stat.cpp return !maskarr ? cv::norm(a, b, normType) : cv::norm(a, b, normType, mask); norm 106 modules/core/src/types.cpp float c = (float)norm( p1 - p2 ); norm 1228 modules/core/test/ocl/test_arithm.cpp OCL_OFF(const double cpuRes = cv::norm(src1_roi, NORM_INF)); norm 1229 modules/core/test/ocl/test_arithm.cpp OCL_ON(const double gpuRes = cv::norm(usrc1_roi, NORM_INF)); norm 1241 modules/core/test/ocl/test_arithm.cpp OCL_OFF(const double cpuRes = cv::norm(src1_roi, NORM_INF, mask_roi)); norm 1242 modules/core/test/ocl/test_arithm.cpp OCL_ON(const double gpuRes = cv::norm(usrc1_roi, NORM_INF, umask_roi)); norm 1254 modules/core/test/ocl/test_arithm.cpp OCL_OFF(const double cpuRes = cv::norm(src1_roi, NORM_L1)); norm 1255 modules/core/test/ocl/test_arithm.cpp OCL_ON(const double gpuRes = cv::norm(usrc1_roi, NORM_L1)); norm 1267 modules/core/test/ocl/test_arithm.cpp OCL_OFF(const double cpuRes = cv::norm(src1_roi, NORM_L1, mask_roi)); norm 1268 modules/core/test/ocl/test_arithm.cpp OCL_ON(const double gpuRes = cv::norm(usrc1_roi, NORM_L1, umask_roi)); norm 1280 modules/core/test/ocl/test_arithm.cpp OCL_OFF(const double cpuRes = cv::norm(src1_roi, NORM_L2)); norm 1281 modules/core/test/ocl/test_arithm.cpp OCL_ON(const double gpuRes = cv::norm(usrc1_roi, NORM_L2)); norm 1293 modules/core/test/ocl/test_arithm.cpp OCL_OFF(const double cpuRes = cv::norm(src1_roi, NORM_L2, mask_roi)); norm 1294 modules/core/test/ocl/test_arithm.cpp OCL_ON(const double gpuRes = cv::norm(usrc1_roi, NORM_L2, umask_roi)); norm 1313 modules/core/test/ocl/test_arithm.cpp OCL_OFF(const double cpuRes = cv::norm(src1_roi, src2_roi, type)); norm 1314 modules/core/test/ocl/test_arithm.cpp OCL_ON(const double gpuRes = cv::norm(usrc1_roi, usrc2_roi, type)); norm 1333 modules/core/test/ocl/test_arithm.cpp OCL_OFF(const double cpuRes = cv::norm(src1_roi, src2_roi, type, mask_roi)); norm 1334 modules/core/test/ocl/test_arithm.cpp OCL_ON(const double gpuRes = cv::norm(usrc1_roi, usrc2_roi, type, umask_roi)); norm 1353 modules/core/test/ocl/test_arithm.cpp OCL_OFF(const double cpuRes = cv::norm(src1_roi, src2_roi, type)); norm 1354 modules/core/test/ocl/test_arithm.cpp OCL_ON(const double gpuRes = cv::norm(usrc1_roi, usrc2_roi, type)); norm 1373 modules/core/test/ocl/test_arithm.cpp OCL_OFF(const double cpuRes = cv::norm(src1_roi, src2_roi, type, mask_roi)); norm 1374 modules/core/test/ocl/test_arithm.cpp OCL_ON(const double gpuRes = cv::norm(usrc1_roi, usrc2_roi, type, umask_roi)); norm 1393 modules/core/test/ocl/test_arithm.cpp OCL_OFF(const double cpuRes = cv::norm(src1_roi, src2_roi, type)); norm 1394 modules/core/test/ocl/test_arithm.cpp OCL_ON(const double gpuRes = cv::norm(usrc1_roi, usrc2_roi, type)); norm 1413 modules/core/test/ocl/test_arithm.cpp OCL_OFF(const double cpuRes = cv::norm(src1_roi, src2_roi, type, mask_roi)); norm 1414 modules/core/test/ocl/test_arithm.cpp OCL_ON(const double gpuRes = cv::norm(usrc1_roi, usrc2_roi, type, umask_roi)); norm 1256 modules/core/test/test_arithm.cpp dst.at<double>(0,0) = cv::norm(src[0], normType, mask); norm 1257 modules/core/test/test_arithm.cpp dst.at<double>(0,1) = cv::norm(src[0], src[1], normType, mask); norm 1262 modules/core/test/test_arithm.cpp dst.at<double>(0,0) = cvtest::norm(src[0], normType, mask); norm 1263 modules/core/test/test_arithm.cpp dst.at<double>(0,1) = cvtest::norm(src[0], src[1], normType, mask); norm 1503 modules/core/test/test_arithm.cpp CV_Assert( cvtest::norm(c, d1, CV_C) <= DBL_EPSILON ); norm 1577 modules/core/test/test_arithm.cpp ASSERT_EQ(0, cvtest::norm(dst, ref_dst, cv::NORM_INF)); norm 2095 modules/core/test/test_ds.cpp CV_TS_SEQ_CHECK_CONDITION( cvtest::norm(Mat(vtx_mask),CV_L1) == graph->active_count && norm 2096 modules/core/test/test_ds.cpp cvtest::norm(Mat(edge_mask),CV_L1) == graph->edges->active_count, norm 858 modules/core/test/test_dxt.cpp if (cvtest::norm(dst, dstz, NORM_INF) > 1e-3) norm 880 modules/core/test/test_dxt.cpp double nrm = norm(out, NORM_INF); norm 237 modules/core/test/test_eigen.cpp double diff = cvtest::norm(UUt, E, NORM_TYPE[i]); norm 346 modules/core/test/test_eigen.cpp double diff = cvtest::norm(disparity, NORM_TYPE[i]); norm 375 modules/core/test/test_eigen.cpp double diff = cvtest::norm(eigen_values_1, eigen_values_2, NORM_TYPE[i]); norm 115 modules/core/test/test_hal_core.cpp EXPECT_LE(norm(dst, dst0, NORM_INF | NORM_RELATIVE), eps); norm 186 modules/core/test/test_hal_core.cpp EXPECT_LE(norm(x, x0, NORM_INF | NORM_RELATIVE), eps); norm 491 modules/core/test/test_io.cpp CV_Assert( cvtest::norm(Mat(mi3), Mat(mi4), CV_C) == 0 ); norm 493 modules/core/test/test_io.cpp double n = cvtest::norm(mv3[0], mv4[0], CV_C); norm 55 modules/core/test/test_lpsolver.cpp ASSERT_LT(cvtest::norm(z, etalon_z, cv::NORM_L1), 1e-12); norm 66 modules/core/test/test_lpsolver.cpp ASSERT_LT(cvtest::norm(z, etalon_z, cv::NORM_L1), 1e-12); norm 77 modules/core/test/test_lpsolver.cpp ASSERT_LT(cvtest::norm(z, etalon_z, cv::NORM_L1), 1e-12); norm 92 modules/core/test/test_lpsolver.cpp ASSERT_LT(cvtest::norm(z, etalon_z, cv::NORM_L1), 1e-12); norm 343 modules/core/test/test_mat.cpp err = cvtest::norm( Qv, lv, NORM_L2 ); norm 353 modules/core/test/test_mat.cpp err = cvtest::norm( rPCA.eigenvalues, subEval, NORM_L2 ); norm 365 modules/core/test/test_mat.cpp err = cvtest::norm( r0, r1, CV_L2 ); norm 369 modules/core/test/test_mat.cpp double err2 = cvtest::norm(r0, r1, CV_L2); norm 393 modules/core/test/test_mat.cpp err = cvtest::norm(rPrjTestPoints.row(i), prj, CV_RELATIVE_L2); norm 402 modules/core/test/test_mat.cpp err = cvtest::norm( rBackPrjTestPoints.row(i), backPrj, CV_RELATIVE_L2 ); norm 415 modules/core/test/test_mat.cpp err = cvtest::norm(cv::abs(ocvPrjTestPoints), cv::abs(rPrjTestPoints.t()), CV_RELATIVE_L2 ); norm 422 modules/core/test/test_mat.cpp err = cvtest::norm(cPCA.backProject(ocvPrjTestPoints), rBackPrjTestPoints.t(), CV_RELATIVE_L2 ); norm 436 modules/core/test/test_mat.cpp err = cvtest::norm(cv::abs(rvPrjTestPoints.rowRange(0,maxComponents)), cv::abs(rPrjTestPoints.t()), CV_RELATIVE_L2 ); norm 438 modules/core/test/test_mat.cpp err = cvtest::norm(cv::abs(rvPrjTestPoints), cv::abs(rPrjTestPoints.colRange(0,cPCA.eigenvectors.rows).t()), CV_RELATIVE_L2 ); norm 446 modules/core/test/test_mat.cpp err = cvtest::norm(cPCA.backProject(rvPrjTestPoints), rBackPrjTestPoints.t(), CV_RELATIVE_L2 ); norm 470 modules/core/test/test_mat.cpp err = cvtest::norm(prjTestPoints, rPrjTestPoints, CV_RELATIVE_L2); norm 477 modules/core/test/test_mat.cpp err = cvtest::norm(backPrjTestPoints, rBackPrjTestPoints, CV_RELATIVE_L2); norm 498 modules/core/test/test_mat.cpp err = cvtest::norm(cv::abs(prjTestPoints), cv::abs(rPrjTestPoints.t()), CV_RELATIVE_L2 ); norm 505 modules/core/test/test_mat.cpp err = cvtest::norm(backPrjTestPoints, rBackPrjTestPoints.t(), CV_RELATIVE_L2); norm 521 modules/core/test/test_mat.cpp err = cvtest::norm( rPCA.eigenvectors, lPCA.eigenvectors, CV_RELATIVE_L2 ); norm 527 modules/core/test/test_mat.cpp err = cvtest::norm( rPCA.eigenvalues, lPCA.eigenvalues, CV_RELATIVE_L2 ); norm 533 modules/core/test/test_mat.cpp err = cvtest::norm( rPCA.mean, lPCA.mean, CV_RELATIVE_L2 ); norm 783 modules/core/test/test_mat.cpp double _norm0 = cvtest::norm(_all_vals, CV_C); norm 784 modules/core/test/test_mat.cpp double _norm1 = cvtest::norm(_all_vals, CV_L1); norm 785 modules/core/test/test_mat.cpp double _norm2 = cvtest::norm(_all_vals, CV_L2); norm 820 modules/core/test/test_mat.cpp double norm0 = norm(M, CV_C); norm 821 modules/core/test/test_mat.cpp double norm1 = norm(M, CV_L1); norm 822 modules/core/test/test_mat.cpp double norm2 = norm(M, CV_L2); norm 1217 modules/core/test/test_mat.cpp ASSERT_EQ( norm(a, b, NORM_INF), 0.); norm 1248 modules/core/test/test_mat.cpp ASSERT_LT(norm(mat_U, Mat::eye(2, 2, type), NORM_INF), 1e-5); norm 1963 modules/core/test/test_math.cpp normval = cvtest::norm( w->row(i), NORM_L1 ); norm 2434 modules/core/test/test_math.cpp double normDiff = cvtest::norm(convertedRes - resInDeg, NORM_INF); norm 2570 modules/core/test/test_math.cpp ASSERT_LT( cvtest::norm(b*c, i, CV_C), 0.1 ); norm 2572 modules/core/test/test_math.cpp ASSERT_LT( cvtest::norm(b*c, i, CV_C), 0.1 ); norm 2574 modules/core/test/test_math.cpp ASSERT_LT( cvtest::norm(b*c, i, CV_C), 0.1 ); norm 2622 modules/core/test/test_math.cpp EXPECT_LE(cvtest::norm(B1, B, NORM_L2 + NORM_RELATIVE), FLT_EPSILON*10); norm 86 modules/core/test/test_operations.cpp if (cvtest::norm(m1, m2, NORM_INF) != 0) throw test_excep(s); norm 90 modules/core/test/test_operations.cpp if (cvtest::norm(m1, m2, NORM_INF) > 1e-5) throw test_excep(s); norm 491 modules/core/test/test_operations.cpp CV_Assert( cvtest::norm(coords, T_bs.reshape(1,1), NORM_INF) == 0 ); norm 779 modules/core/test/test_operations.cpp CV_Assert( cvtest::norm(mvf2[0], mvf[0], CV_C) == 0 && norm 780 modules/core/test/test_operations.cpp cvtest::norm(mvf2[1], mvf[1], CV_C) == 0 ); norm 786 modules/core/test/test_operations.cpp CV_Assert( cvtest::norm(c, CV_L1) == 4. ); norm 1017 modules/core/test/test_operations.cpp CV_Assert( cvtest::norm(b, c, CV_C) == 0 ); norm 1020 modules/core/test/test_operations.cpp CV_Assert( cvtest::norm(b, c, CV_C) == 0 ); norm 1023 modules/core/test/test_operations.cpp CV_Assert( cvtest::norm(Matx61f(1.f, 1.f, 1.f, 1.f, 1.f, 1.f), c, CV_C) == 0 ); norm 1069 modules/core/test/test_operations.cpp if( cvtest::norm(A*x, CV_C) > FLT_EPSILON ) norm 1073 modules/core/test/test_operations.cpp if( cvtest::norm(A*svd.vt.row(3).t(), CV_C) > FLT_EPSILON ) norm 1097 modules/core/test/test_operations.cpp if( cvtest::norm(U*U.t(), I, CV_C) > FLT_EPSILON || norm 1098 modules/core/test/test_operations.cpp cvtest::norm(Vt*Vt.t(), I, CV_C) > FLT_EPSILON || norm 1101 modules/core/test/test_operations.cpp cvtest::norm(U*Mat::diag(W)*Vt, Q, CV_C) > FLT_EPSILON ) norm 177 modules/core/test/test_rand.cpp if( maxk >= 1 && cvtest::norm(arr[0], arr[1], NORM_INF) > eps) norm 75 modules/core/test/test_rotatedrect.cpp while( norm(a - b) <= FLT_EPSILON ); norm 96 modules/core/test/test_rotatedrect.cpp if( norm(vertices[i] - a) <= 0.001 ) count_match++; norm 97 modules/core/test/test_rotatedrect.cpp else if( norm(vertices[i] - b) <= 0.001 ) count_match++; norm 98 modules/core/test/test_rotatedrect.cpp else if( norm(vertices[i] - c) <= 0.001 ) count_match++; norm 572 modules/core/test/test_umat.cpp if (cvtest::norm(m1, m2, NORM_INF) != 0) norm 577 modules/core/test/test_umat.cpp if (cvtest::norm(m1, m2, NORM_INF) > 1e-5) norm 730 modules/core/test/test_umat.cpp double err = cvtest::norm(m, ref, NORM_INF); norm 751 modules/core/test/test_umat.cpp EXPECT_EQ(0, cvtest::norm(um.getMat(ACCESS_READ), cv::Mat(um.size(), um.type(), 19), NORM_INF)); norm 769 modules/core/test/test_umat.cpp EXPECT_EQ(0, cvtest::norm(um.getMat(ACCESS_READ), Mat(um.size(), um.type(), 17), NORM_INF)); norm 530 modules/cudaarithm/include/opencv2/cudaarithm.hpp CV_EXPORTS double norm(InputArray src1, int normType, InputArray mask = noArray()); norm 542 modules/cudaarithm/include/opencv2/cudaarithm.hpp CV_EXPORTS double norm(InputArray src1, InputArray src2, int normType=NORM_L2); norm 75 modules/cudaarithm/perf/perf_reductions.cpp TEST_CYCLE() gpu_dst = cv::cuda::norm(d_src, normType, d_buf); norm 83 modules/cudaarithm/perf/perf_reductions.cpp TEST_CYCLE() cpu_dst = cv::norm(src, normType); norm 113 modules/cudaarithm/perf/perf_reductions.cpp TEST_CYCLE() gpu_dst = cv::cuda::norm(d_src1, d_src2, normType); norm 122 modules/cudaarithm/perf/perf_reductions.cpp TEST_CYCLE() cpu_dst = cv::norm(src1, src2, normType); norm 77 modules/cudaarithm/test/test_reductions.cpp double val = cv::cuda::norm(loadMat(src, useRoi), normCode, loadMat(mask, useRoi)); norm 79 modules/cudaarithm/test/test_reductions.cpp double val_gold = cv::norm(src, normCode, mask); norm 99 modules/cudaarithm/test/test_reductions.cpp double val_gold = cv::norm(src, normCode, mask); norm 142 modules/cudaarithm/test/test_reductions.cpp double val = cv::cuda::norm(loadMat(src1, useRoi), loadMat(src2, useRoi), normCode); norm 144 modules/cudaarithm/test/test_reductions.cpp double val_gold = cv::norm(src1, src2, normCode); norm 165 modules/cudaarithm/test/test_reductions.cpp double val_gold = cv::norm(src1, src2, normCode); norm 179 modules/cudafeatures2d/src/brute_force_matcher.cpp explicit BFMatcher_Impl(int norm) : norm_(norm) norm 181 modules/cudafeatures2d/src/brute_force_matcher.cpp CV_Assert( norm == NORM_L1 || norm == NORM_L2 || norm == NORM_HAMMING ); norm 1072 modules/cudafeatures2d/src/brute_force_matcher.cpp Ptr<cv::cuda::DescriptorMatcher> cv::cuda::DescriptorMatcher::createBFMatcher(int norm) norm 1074 modules/cudafeatures2d/src/brute_force_matcher.cpp return makePtr<BFMatcher_Impl>(norm); norm 286 modules/cudalegacy/src/calib3d.cpp if (norm(p_proj - image_normalized.at<Point2f>(0, i)) < max_dist) norm 143 modules/cudalegacy/test/test_calib3d.cpp ASSERT_LE(cv::norm(res_gold - res) / cv::norm(res_gold), 1e-3f); norm 186 modules/cudalegacy/test/test_calib3d.cpp ASSERT_LE(cv::norm(rvec - rvec_gold), 1e-3); norm 187 modules/cudalegacy/test/test_calib3d.cpp ASSERT_LE(cv::norm(tvec - tvec_gold), 1e-3); norm 21 modules/features2d/misc/java/test/ORBDescriptorExtractorTest.java double distance = Core.norm(expected, actual, Core.NORM_HAMMING); norm 285 modules/features2d/src/blobdetector.cpp dists.push_back(norm(center.location - pt)); norm 328 modules/features2d/src/blobdetector.cpp double dist = norm(centers[j][ centers[j].size() / 2 ].location - curCenters[i].location); norm 346 modules/features2d/src/evaluation.cpp if( norm(diff) < maxDist ) norm 325 modules/features2d/src/kaze/nldiffusion_functions.cpp float norm = 1.0f / (2.0f*scale*(w + 2.0f)); norm 333 modules/features2d/src/kaze/nldiffusion_functions.cpp kerI[0] = norm, kerI[ksize / 2] = w*norm, kerI[ksize - 1] = norm; norm 122 modules/features2d/test/test_agast.cpp if ( exp_kps1.size != kps1.size || 0 != cvtest::norm(exp_kps1, kps1, NORM_L2) || norm 123 modules/features2d/test/test_agast.cpp exp_kps2.size != kps2.size || 0 != cvtest::norm(exp_kps2, kps2, NORM_L2)) norm 118 modules/features2d/test/test_detectors_regression.cpp float dist = (float)norm( p1.pt - p2.pt ); norm 151 modules/features2d/test/test_detectors_regression.cpp float curDist = (float)norm( calcKeypoints[c].pt - validKeypoints[v].pt ); norm 122 modules/features2d/test/test_fast.cpp if ( exp_kps1.size != kps1.size || 0 != cvtest::norm(exp_kps1, kps1, NORM_L2) || norm 123 modules/features2d/test/test_fast.cpp exp_kps2.size != kps2.size || 0 != cvtest::norm(exp_kps2, kps2, NORM_L2)) norm 201 modules/features2d/test/test_nearestneighbors.cpp if( cvtest::norm( neighbors, neighbors1, NORM_L1 ) != 0 ) norm 233 modules/features2d/test/test_nearestneighbors.cpp if( cvtest::norm( neighbors, neighbors1, NORM_L1 ) != 0 ) norm 117 modules/features2d/test/test_rotation_and_scale_invariance.cpp float c = static_cast<float>(norm(p0 - p1)), sqr_c = c * c; norm 79 modules/imgcodecs/test/test_drawing.cpp float err = (float)cvtest::norm( testImg, valImg, NORM_L1 ); norm 232 modules/imgcodecs/test/test_drawing.cpp float err = (float)cvtest::norm( v, NORM_L2 ); norm 401 modules/imgcodecs/test/test_drawing.cpp float err = (float)cvtest::norm( v, NORM_L2 ); norm 207 modules/imgcodecs/test/test_grfmt.cpp double n = cvtest::norm(img, img_test, NORM_L2); norm 236 modules/imgcodecs/test/test_grfmt.cpp double n = cvtest::norm(img, img_test, NORM_L1); norm 270 modules/imgcodecs/test/test_grfmt.cpp double n = cvtest::norm(img, img_test, NORM_L2); norm 297 modules/imgcodecs/test/test_grfmt.cpp if (cvtest::norm(rle-bmp, NORM_L2)>1.e-10) norm 493 modules/imgcodecs/test/test_grfmt.cpp EXPECT_EQ(0, cvtest::norm(img_jpg_progressive, img_jpg_normal, NORM_INF)); norm 517 modules/imgcodecs/test/test_grfmt.cpp EXPECT_EQ(0, cvtest::norm(img_jpg_optimized, img_jpg_normal, NORM_INF)); norm 541 modules/imgcodecs/test/test_grfmt.cpp EXPECT_EQ(0, cvtest::norm(img_jpg_rst, img_jpg_normal, NORM_INF)); norm 794 modules/imgcodecs/test/test_grfmt.cpp EXPECT_TRUE(cvtest::norm(decode, img_webp, NORM_INF) == 0); norm 798 modules/imgcodecs/test/test_grfmt.cpp EXPECT_TRUE(cvtest::norm(img, img_webp, NORM_INF) == 0); norm 1680 modules/imgproc/src/drawing.cpp const double tipSize = norm(pt1-pt2)*tipLength; // Factor to normalize the size of the tip depending on the length of the arrow norm 714 modules/imgproc/src/generalized_hough.cpp f.d12 = norm(d); norm 569 modules/imgproc/src/lsd.cpp double norm = std::sqrt((gx * gx + gy * gy) / 4); // gradient norm norm 571 modules/imgproc/src/lsd.cpp modgrad_data[addr] = norm; // store gradient norm 573 modules/imgproc/src/lsd.cpp if (norm <= threshold) // norm too small, gradient no defined norm 580 modules/imgproc/src/lsd.cpp if (norm > max_grad) { max_grad = norm; } norm 595 modules/imgproc/src/lsd.cpp const double* norm = modgrad_data + y * img_width; norm 596 modules/imgproc/src/lsd.cpp for(int x = 0; x < img_width - 1; ++x, ++norm) norm 599 modules/imgproc/src/lsd.cpp int i = int((*norm) * bin_coef); norm 77 modules/imgproc/src/shapedescr.cpp *radius = (float)norm(*center - pt0); norm 113 modules/imgproc/src/shapedescr.cpp float dist = (float)norm(pts[i] - pts[j]); norm 137 modules/imgproc/src/shapedescr.cpp radius = (float)(norm(pts[idxs[0]] - center)*1.03); norm 267 modules/imgproc/test/test_bilateral_filter.cpp double e = cvtest::norm(reference_dst, _parallel_dst, NORM_L2); norm 263 modules/imgproc/test/test_canny.cpp double err = cvtest::norm(test_mat[OUTPUT][0], test_mat[REF_OUTPUT][0], CV_L1); norm 274 modules/imgproc/test/test_canny.cpp nz0 = cvRound(cvtest::norm(test_mat[REF_OUTPUT][0], CV_L1)/255); norm 94 modules/imgproc/test/test_connectedcomponents.cpp if (0 != cvtest::norm(labelImage > 0, exp > 0, NORM_INF)) norm 99 modules/imgproc/test/test_connectedcomponents.cpp if (nLabels != cvtest::norm(labelImage, NORM_INF)+1) norm 648 modules/imgproc/test/test_convhull.cpp if( cvtest::norm( _mask, Mat::zeros(_mask.dims, _mask.size, _mask.type()), NORM_L1 ) != hull_count ) norm 1919 modules/imgproc/test/test_filter.cpp EXPECT_DOUBLE_EQ(0.0, cvtest::norm(expected_dst, dst, NORM_INF)); norm 1951 modules/imgproc/test/test_filter.cpp ASSERT_EQ(0.0, norm(dst0, dst1, NORM_INF)); norm 1952 modules/imgproc/test/test_filter.cpp ASSERT_EQ(0.0, norm(dst0, dst2, NORM_INF)); norm 68 modules/imgproc/test/test_houghLines.cpp return norm(value, other) < theta_eps; norm 1518 modules/imgproc/test/test_imgwarp.cpp cvtest::TS::ptr()->printf(cvtest::TS::SUMMARY, "Inf norm: %f\n", static_cast<float>(norm(actual, expected, NORM_INF))); norm 1533 modules/imgproc/test/test_imgwarp.cpp ASSERT_EQ(cvtest::norm(one_channel_diff, cv::NORM_INF), 0); norm 1631 modules/imgproc/test/test_imgwarp.cpp ASSERT_GE(eps, cvtest::norm(dst_reference, dst_actual, cv::NORM_INF)); norm 1649 modules/imgproc/test/test_imgwarp.cpp ASSERT_EQ(0.0, norm(dst, NORM_INF)); norm 1653 modules/imgproc/test/test_imgwarp.cpp ASSERT_EQ(0.0, norm(dst, NORM_INF)); norm 1668 modules/imgproc/test/test_imgwarp.cpp ASSERT_EQ(0.0, norm(trans, NORM_INF)); norm 265 modules/imgproc/test/test_imgwarp_strict.cpp PRINT_TO_LOG("\nNorm of the difference: %lf\n", cvtest::norm(reference_dst, _dst, NORM_INF)); norm 124 modules/imgproc/test/test_watershed.cpp if (0 != norm(markers8U, exp, NORM_INF)) norm 418 modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java double maxDiff = Core.norm(diff, Core.NORM_INF); norm 37 modules/java/android_test/src/org/opencv/test/android/UtilsTest.java double maxDiff = Core.norm(m16, m32, Core.NORM_INF); norm 81 modules/java/android_test/src/org/opencv/test/android/UtilsTest.java maxDiff = Core.norm(imgRGBA, m16, Core.NORM_INF); norm 87 modules/java/android_test/src/org/opencv/test/android/UtilsTest.java maxDiff = Core.norm(imgRGBA, m32, Core.NORM_INF); norm 99 modules/java/android_test/src/org/opencv/test/android/UtilsTest.java maxDiff = Core.norm(imgRGBA, m16, Core.NORM_INF); norm 105 modules/java/android_test/src/org/opencv/test/android/UtilsTest.java maxDiff = Core.norm(imgRGBA, m32, Core.NORM_INF); norm 119 modules/java/android_test/src/org/opencv/test/android/UtilsTest.java maxDiff = Core.norm(imgGray, tmp, Core.NORM_INF); norm 127 modules/java/android_test/src/org/opencv/test/android/UtilsTest.java maxDiff = Core.norm(imgGray, tmp, Core.NORM_INF); norm 448 modules/java/pure_test/src/org/opencv/test/OpenCVTestCase.java double maxDiff = Core.norm(diff, Core.NORM_INF); norm 70 modules/ml/src/lr.cpp norm = LogisticRegression::REG_L2; norm 78 modules/ml/src/lr.cpp int norm; norm 93 modules/ml/src/lr.cpp CV_IMPL_PROPERTY(int, Regularization, params.norm) norm 325 modules/ml/src/lr.cpp if (params.norm != REG_DISABLE) norm 330 modules/ml/src/lr.cpp if(this->params.norm == LogisticRegression::REG_L1) norm 380 modules/ml/src/lr.cpp if (params.norm != REG_DISABLE) norm 452 modules/ml/src/lr.cpp if (params.norm != REG_DISABLE) norm 582 modules/ml/src/lr.cpp fs<<"norm"<<this->params.norm; norm 603 modules/ml/src/lr.cpp this->params.norm = (int)fn["norm"]; norm 100 modules/ml/src/nbayes.cpp norm(var_idx, __var_idx, NORM_INF) != 0 || norm 102 modules/ml/src/nbayes.cpp norm(cls_labels, __cls_labels, NORM_INF) != 0 ) norm 93 modules/ml/src/testset.cpp elem.d = norm(samples.row(i), NORM_L2); norm 294 modules/ml/test/test_save_load.cpp EXPECT_LE(norm(r1, r2, NORM_INF), eps); norm 295 modules/ml/test/test_save_load.cpp EXPECT_LE(norm(r1, r3, NORM_INF), eps); norm 340 modules/objdetect/test/test_cascadeandhog.cpp float minDist = (float)norm( Point(imgSize.width, imgSize.height) ); norm 345 modules/objdetect/test/test_cascadeandhog.cpp float curDist = (float)norm(cp1-cp2); norm 1090 modules/objdetect/test/test_cascadeandhog.cpp double diff_norm = cvtest::norm(actual_weights, weights, NORM_L2); norm 1171 modules/objdetect/test/test_cascadeandhog.cpp double diff_norm = cvtest::norm(actual_descriptors, descriptors, NORM_L2); norm 1321 modules/objdetect/test/test_cascadeandhog.cpp double diff_norm = cvtest::norm(reference_mats[i], actual_mats[i], NORM_L2); norm 88 modules/photo/test/test_cloning.cpp double error = cvtest::norm(reference, result, NORM_L1); norm 119 modules/photo/test/test_cloning.cpp double error = cvtest::norm(reference, result, NORM_L1); norm 151 modules/photo/test/test_cloning.cpp double error = cvtest::norm(reference, result, NORM_L1); norm 177 modules/photo/test/test_cloning.cpp double error = cvtest::norm(reference, result, NORM_L1); norm 201 modules/photo/test/test_cloning.cpp double error = cvtest::norm(reference, result, NORM_L1); norm 227 modules/photo/test/test_cloning.cpp double error = cvtest::norm(reference, result, NORM_L1); norm 66 modules/photo/test/test_decolor.cpp double error_grayscale = cvtest::norm(reference_grayscale, grayscale, NORM_L1); norm 70 modules/photo/test/test_decolor.cpp double error_boost = cvtest::norm(reference_boost, color_boost, NORM_L1); norm 76 modules/photo/test/test_denoising.cpp ASSERT_EQ(0, cvtest::norm(result, expected, NORM_L2)); norm 96 modules/photo/test/test_denoising.cpp ASSERT_EQ(0, cvtest::norm(result, expected, NORM_L2)); norm 121 modules/photo/test/test_denoising.cpp ASSERT_EQ(0, cvtest::norm(result, expected, NORM_L2)); norm 146 modules/photo/test/test_denoising.cpp ASSERT_EQ(0, cvtest::norm(result, expected, NORM_L2)); norm 94 modules/photo/test/test_inpaint.cpp double n1 = cvtest::norm(diff1.reshape(1), NORM_INF, inv_mask.reshape(1)); norm 95 modules/photo/test/test_inpaint.cpp double n2 = cvtest::norm(diff2.reshape(1), NORM_INF, inv_mask.reshape(1)); norm 106 modules/photo/test/test_inpaint.cpp n1 = cvtest::norm(diff1.reshape(1), NORM_INF, mask.reshape(1)); norm 107 modules/photo/test/test_inpaint.cpp n2 = cvtest::norm(diff2.reshape(1), NORM_INF, mask.reshape(1)); norm 65 modules/photo/test/test_npr.cpp double error = cvtest::norm(reference, result, NORM_L1); norm 82 modules/photo/test/test_npr.cpp double error = cvtest::norm(reference, result, NORM_L1); norm 100 modules/photo/test/test_npr.cpp double error = cvtest::norm(reference, result, NORM_L1); norm 117 modules/photo/test/test_npr.cpp double pencil_error = norm(pencil_reference, pencil_result, NORM_L1); norm 121 modules/photo/test/test_npr.cpp double color_pencil_error = cvtest::norm(color_pencil_reference, color_pencil_result, NORM_L1); norm 138 modules/photo/test/test_npr.cpp double stylized_error = cvtest::norm(stylized_reference, result, NORM_L1); norm 112 modules/shape/src/haus_dis.cpp disMat.at<float>(r,c) = (float)norm(Mat(diff), distType); norm 157 modules/shape/src/hist_cost.cpp costMatrix.at<float>(i,j)=(float)norm(columnDiff, flag); norm 411 modules/shape/src/sc_dis.cpp disMatrix.at<float>(i,j) = (float)norm( cv::Mat(contourMat.at<cv::Point2f>(0,i)-contourMat.at<cv::Point2f>(0,j)), cv::NORM_L2 ); norm 637 modules/stitching/src/motion_estimators.cpp double rg0_norm = norm(rg0); norm 131 modules/ts/include/opencv2/ts.hpp CV_EXPORTS double norm(InputArray src, int normType, InputArray mask=noArray()); norm 132 modules/ts/include/opencv2/ts.hpp CV_EXPORTS double norm(InputArray src1, InputArray src2, int normType, InputArray mask=noArray()); norm 292 modules/ts/include/opencv2/ts/ocl_test.hpp return cvtest::norm(m1.getMat(), m2.getMat(), cv::NORM_INF, mask) / norm 294 modules/ts/include/opencv2/ts/ocl_test.hpp (double)std::max(cvtest::norm(m1.getMat(), cv::NORM_INF), cvtest::norm(m2.getMat(), cv::NORM_INF))); norm 299 modules/ts/include/opencv2/ts/ocl_test.hpp double norm_inf = cvtest::norm(m1.getMat(), m2.getMat(), cv::NORM_INF, mask); norm 302 modules/ts/include/opencv2/ts/ocl_test.hpp (double)std::max(cvtest::norm(m1.getMat(), cv::NORM_INF), cvtest::norm(m2.getMat(), cv::NORM_INF))); norm 444 modules/ts/src/cuda_test.cpp double dist = cv::norm(p1.pt - p2.pt); norm 240 modules/ts/src/ocl_test.cpp return cvtest::norm(m.getMat(), NORM_INF, mask.getMat()); norm 245 modules/ts/src/ocl_test.cpp return cvtest::norm(m1.getMat(), m2.getMat(), NORM_INF, mask.getMat()); norm 1250 modules/ts/src/ts_func.cpp return cvtest::norm(temp, normType, Mat()); norm 1399 modules/ts/src/ts_func.cpp return isRelative ? result / (cvtest::norm(src2, normType) + DBL_EPSILON) : result; norm 1405 modules/ts/src/ts_func.cpp double diff = std::sqrt(cvtest::norm(_src1, _src2, NORM_L2SQR)/(_src1.total()*_src1.channels())); norm 1987 modules/ts/src/ts_func.cpp maxval = cvtest::norm( refarr, NORM_INF ); norm 239 modules/video/src/ecc.cpp dstPtr[i*(dst.rows+1)] = (float) pow(norm(mat),2); //diagonal elements norm 112 modules/video/test/test_estimaterigid.cpp double thres = 0.1*cvtest::norm(aff, NORM_L2); norm 113 modules/video/test/test_estimaterigid.cpp double d = cvtest::norm(aff_est, aff, NORM_L2); norm 123 modules/video/test/test_estimaterigid.cpp nB = cvtest::norm(B, NORM_L2); norm 157 modules/video/test/test_estimaterigid.cpp if (cvtest::norm(aff_est, aff, NORM_INF) > thres) norm 161 modules/video/test/test_estimaterigid.cpp cvtest::norm(aff_est, aff, NORM_INF) ); norm 202 modules/videoio/test/test_ffmpeg.cpp double diff = cvtest::norm(img0, img, CV_C); norm 58 modules/videostab/src/deblurring.cpp double normGx = norm(Gx); norm 59 modules/videostab/src/deblurring.cpp double normGy = norm(Gy); norm 171 modules/videostab/src/global_motion.cpp *rmse = static_cast<float>(norm(A*sol, b, NORM_L2) / std::sqrt(static_cast<double>(npoints))); norm 306 modules/videostab/src/global_motion.cpp *rmse = static_cast<float>(norm(A*sol, b, NORM_L2) / std::sqrt(static_cast<double>(npoints))); norm 345 modules/videostab/src/global_motion.cpp *rmse = static_cast<float>(norm(A*sol, b, NORM_L2) / std::sqrt(static_cast<double>(npoints))); norm 195 modules/viz/src/precomp.hpp template<typename _Tp> inline _Tp normalized(const _Tp& v) { return v * 1/norm(v); } norm 160 modules/viz/src/shapes.cpp double length = norm(end_point - start_point); norm 260 modules/viz/src/shapes.cpp WCone circle(norm(tip - center), radius, resolution, color); norm 1059 modules/viz/src/shapes.cpp if(norm(lvec) > line_length) norm 956 modules/viz/src/vtk/vtkVizInteractorStyle.cpp DiagonalLength = norm(Vec3d(bounds[0], bounds[2], bounds[4]) - Vec3d(bounds[1], bounds[3], bounds[5])); norm 112 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrator.java error = Core.norm(mCornersBuffer.get(i), cornersProjected, Core.NORM_L2); norm 101 samples/cpp/calibration.cpp err = norm(Mat(imagePoints[i]), Mat(imagePoints2), NORM_L2); norm 99 samples/cpp/lkdemo.cpp if( norm(point - points[1][i]) <= 5 ) norm 236 samples/cpp/select3dobj.cpp if( norm(m - imgpt[i]) < norm(m - imgpt[nearestIdx]) ) norm 253 samples/cpp/select3dobj.cpp float n1 = (float)norm(d1), n2 = (float)norm(d2); norm 265 samples/cpp/select3dobj.cpp (npt > 0 && norm(box[npt] - box[npt-1]) > eps && norm 420 samples/cpp/tutorial_code/calib3d/camera_calibration/camera_calibration.cpp err = norm(imagePoints[i], imagePoints2, NORM_L2); norm 223 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/PnPProblem.cpp ray = ray / cv::norm(ray); // 3x1 norm 175 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.cpp return cv::norm( t_true - t ); norm 185 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.cpp return cv::norm(error_vec); norm 141 samples/gpu/driver_api_multi.cpp bool passed = cv::norm(dst - Mat(d_dst), NORM_INF) < 1e-3; norm 98 samples/gpu/multi.cpp bool passed = cv::norm(dst - Mat(d_dst), NORM_INF) < 1e-3; norm 221 samples/gpu/performance/tests.cpp TEST(norm) norm 232 samples/gpu/performance/tests.cpp norm(src, NORM_INF); norm 235 samples/gpu/performance/tests.cpp norm(src, NORM_INF); norm 240 samples/gpu/performance/tests.cpp cuda::norm(d_src, NORM_INF, d_buf); norm 243 samples/gpu/performance/tests.cpp cuda::norm(d_src, NORM_INF, d_buf);