dist 455 3rdparty/libtiff/tif_lzma.c sp->opt_delta.dist = (tif->tif_dir.td_bitspersample % 8) ? dist 146 3rdparty/libwebp/dec/vp8l.c const int dist = yoffset * xsize + xoffset; dist 147 3rdparty/libwebp/dec/vp8l.c return (dist >= 1) ? dist : 1; dist 737 3rdparty/libwebp/dec/vp8l.c int dist_code, dist; \ dist 743 3rdparty/libwebp/dec/vp8l.c dist = PlaneCodeToDistance(width, dist_code); \ dist 744 3rdparty/libwebp/dec/vp8l.c if (src - data < dist || src_end - src < length) { \ dist 750 3rdparty/libwebp/dec/vp8l.c for (i = 0; i < length; ++i) src[i] = src[i - dist]; \ dist 57 3rdparty/libwebp/enc/backward_references.c static int DistanceToPlaneCode(int xsize, int dist) { dist 58 3rdparty/libwebp/enc/backward_references.c const int yoffset = dist / xsize; dist 59 3rdparty/libwebp/enc/backward_references.c const int xoffset = dist - yoffset * xsize; dist 65 3rdparty/libwebp/enc/backward_references.c return dist + 120; dist 733 3rdparty/libwebp/enc/backward_references.c const int dist = refs->refs[i].argb_or_distance; dist 734 3rdparty/libwebp/enc/backward_references.c const int transformed_dist = DistanceToPlaneCode(xsize, dist); dist 297 3rdparty/zlib/deflate.h int ZLIB_INTERNAL _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc)); dist 305 3rdparty/zlib/deflate.h #define d_code(dist) \ dist 306 3rdparty/zlib/deflate.h ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)]) dist 332 3rdparty/zlib/deflate.h ush dist = (distance); \ dist 333 3rdparty/zlib/deflate.h s->d_buf[s->last_lit] = dist; \ dist 335 3rdparty/zlib/deflate.h dist--; \ dist 337 3rdparty/zlib/deflate.h s->dyn_dtree[d_code(dist)].Freq++; \ dist 94 3rdparty/zlib/inffast.c unsigned dist; /* match distance */ dist 165 3rdparty/zlib/inffast.c dist = (unsigned)(here.val); dist 175 3rdparty/zlib/inffast.c dist += (unsigned)hold & ((1U << op) - 1); dist 177 3rdparty/zlib/inffast.c if (dist > dmax) { dist 185 3rdparty/zlib/inffast.c Tracevv((stderr, "inflate: distance %u\n", dist)); dist 187 3rdparty/zlib/inffast.c if (dist > op) { /* see if copy from window */ dist 188 3rdparty/zlib/inffast.c op = dist - op; /* distance back in window */ dist 208 3rdparty/zlib/inffast.c from = out - dist; dist 224 3rdparty/zlib/inffast.c from = out - dist; /* rest from output */ dist 242 3rdparty/zlib/inffast.c from = out - dist; /* rest from output */ dist 253 3rdparty/zlib/inffast.c from = out - dist; /* rest from output */ dist 269 3rdparty/zlib/inffast.c from = out - dist; /* copy direct from output */ dist 385 3rdparty/zlib/inflate.c unsigned dist; dist 411 3rdparty/zlib/inflate.c dist = state->wsize - state->wnext; dist 412 3rdparty/zlib/inflate.c if (dist > copy) dist = copy; dist 413 3rdparty/zlib/inflate.c zmemcpy(state->window + state->wnext, end - copy, dist); dist 414 3rdparty/zlib/inflate.c copy -= dist; dist 421 3rdparty/zlib/inflate.c state->wnext += dist; dist 423 3rdparty/zlib/inflate.c if (state->whave < state->wsize) state->whave += dist; dist 242 3rdparty/zlib/trees.c int dist; /* distance index */ dist 273 3rdparty/zlib/trees.c dist = 0; dist 275 3rdparty/zlib/trees.c base_dist[code] = dist; dist 277 3rdparty/zlib/trees.c _dist_code[dist++] = (uch)code; dist 280 3rdparty/zlib/trees.c Assert (dist == 256, "tr_static_init: dist != 256"); dist 281 3rdparty/zlib/trees.c dist >>= 7; /* from now on, all distances are divided by 128 */ dist 283 3rdparty/zlib/trees.c base_dist[code] = dist << 7; dist 285 3rdparty/zlib/trees.c _dist_code[256 + dist++] = (uch)code; dist 288 3rdparty/zlib/trees.c Assert (dist == 256, "tr_static_init: 256+dist != 512"); dist 1010 3rdparty/zlib/trees.c int ZLIB_INTERNAL _tr_tally (s, dist, lc) dist 1012 3rdparty/zlib/trees.c unsigned dist; /* distance of matched string */ dist 1015 3rdparty/zlib/trees.c s->d_buf[s->last_lit] = (ush)dist; dist 1017 3rdparty/zlib/trees.c if (dist == 0) { dist 1023 3rdparty/zlib/trees.c dist--; /* dist = match distance - 1 */ dist 1024 3rdparty/zlib/trees.c Assert((ush)dist < (ush)MAX_DIST(s) && dist 1026 3rdparty/zlib/trees.c (ush)d_code(dist) < (ush)D_CODES, "_tr_tally: bad match"); dist 1029 3rdparty/zlib/trees.c s->dyn_dtree[d_code(dist)].Freq++; dist 1065 3rdparty/zlib/trees.c unsigned dist; /* distance of matched string */ dist 1072 3rdparty/zlib/trees.c dist = s->d_buf[lx]; dist 1074 3rdparty/zlib/trees.c if (dist == 0) { dist 1086 3rdparty/zlib/trees.c dist--; /* dist is now the match distance - 1 */ dist 1087 3rdparty/zlib/trees.c code = d_code(dist); dist 1093 3rdparty/zlib/trees.c dist -= base_dist[code]; dist 1094 3rdparty/zlib/trees.c send_bits(s, dist, extra); /* send the extra distance bits */ dist 250 apps/traincascade/old_ml.hpp const float** neighbors=0, CV_OUT CvMat* neighborResponses=0, CV_OUT CvMat* dist=0 ) const; dist 261 apps/traincascade/old_ml.hpp cv::Mat* dist=0 ) const; dist 272 apps/traincascade/old_ml.hpp const float* neighbor_responses, const float* dist, CvMat* _results, dist 276 apps/traincascade/old_ml.hpp float* neighbor_responses, const float** neighbors, float* dist ) const; dist 1511 modules/calib3d/src/calibinit.cpp float dx, dy, dist; dist 1550 modules/calib3d/src/calibinit.cpp dist = dx * dx + dy * dy; dist 1552 modules/calib3d/src/calibinit.cpp if( dist < min_dist && dist 1553 modules/calib3d/src/calibinit.cpp dist <= cur_quad->edge_len*thresh_scale && dist 1554 modules/calib3d/src/calibinit.cpp dist <= quads[k].edge_len*thresh_scale ) dist 1567 modules/calib3d/src/calibinit.cpp min_dist = dist; dist 1618 modules/calib3d/src/calibinit.cpp dist = dx*dx + dy*dy; dist 1619 modules/calib3d/src/calibinit.cpp if( dist < min_dist ) dist 871 modules/calib3d/src/circlesgrid.cpp double dist = norm(pt - keypoints[i]); dist 872 modules/calib3d/src/circlesgrid.cpp if (dist < minDist) dist 874 modules/calib3d/src/circlesgrid.cpp minDist = dist; dist 1179 modules/calib3d/src/circlesgrid.cpp double dist = norm(vec); dist 1189 modules/calib3d/src/circlesgrid.cpp if (dist1 < dist && dist2 < dist) dist 1220 modules/calib3d/src/circlesgrid.cpp int dist = dm.at<int> (i, j); dist 1223 modules/calib3d/src/circlesgrid.cpp if (dm.at<int> (i, k) == dist - 1 && dm.at<int> (k, j) == 1) dist 486 modules/calib3d/src/five-point.cpp double dist = 50.0; dist 494 modules/calib3d/src/five-point.cpp mask1 = (Q.row(2) < dist) & mask1; dist 497 modules/calib3d/src/five-point.cpp mask1 = (Q.row(2) < dist) & mask1; dist 505 modules/calib3d/src/five-point.cpp mask2 = (Q.row(2) < dist) & mask2; dist 508 modules/calib3d/src/five-point.cpp mask2 = (Q.row(2) < dist) & mask2; dist 516 modules/calib3d/src/five-point.cpp mask3 = (Q.row(2) < dist) & mask3; dist 519 modules/calib3d/src/five-point.cpp mask3 = (Q.row(2) < dist) & mask3; dist 527 modules/calib3d/src/five-point.cpp mask4 = (Q.row(2) < dist) & mask4; dist 530 modules/calib3d/src/five-point.cpp mask4 = (Q.row(2) < dist) & mask4; dist 67 modules/calib3d/src/quadsubpix.cpp double dist = norm(Point2f((float)contours[i][j].x, (float)contours[i][j].y) - point); dist 68 modules/calib3d/src/quadsubpix.cpp min_dist = MIN(min_dist, dist); dist 104 modules/calib3d/src/quadsubpix.cpp double dist = norm(contour[i] - point); dist 105 modules/calib3d/src/quadsubpix.cpp if(dist < min_dist) dist 107 modules/calib3d/src/quadsubpix.cpp min_dist = dist; dist 81 modules/calib3d/test/test_cornerssubpix.cpp double dist = norm(set1[i] - set2[j]); dist 82 modules/calib3d/test/test_cornerssubpix.cpp if(dist < min_dist) dist 85 modules/calib3d/test/test_cornerssubpix.cpp min_dist = dist; dist 656 modules/calib3d/test/test_homography.cpp double dist = matches[i].distance; dist 657 modules/calib3d/test/test_homography.cpp if( dist < min_dist ) min_dist = dist; dist 658 modules/calib3d/test/test_homography.cpp if( dist > max_dist ) max_dist = dist; dist 272 modules/calib3d/test/test_undistort.cpp vector<double> dist(dist_size); dist 277 modules/calib3d/test/test_undistort.cpp Mat _distort(test_mat[INPUT][2].rows,test_mat[INPUT][2].cols,CV_64F,&dist[0]); dist 299 modules/calib3d/test/test_undistort.cpp dist[0] = cvtest::randReal(rng)*0.06 - 0.03; dist 300 modules/calib3d/test/test_undistort.cpp dist[1] = cvtest::randReal(rng)*0.06 - 0.03; dist 301 modules/calib3d/test/test_undistort.cpp if( dist[0]*dist[1] > 0 ) dist 302 modules/calib3d/test/test_undistort.cpp dist[1] = -dist[1]; dist 305 modules/calib3d/test/test_undistort.cpp dist[2] = cvtest::randReal(rng)*0.004 - 0.002; dist 306 modules/calib3d/test/test_undistort.cpp dist[3] = cvtest::randReal(rng)*0.004 - 0.002; dist 308 modules/calib3d/test/test_undistort.cpp dist[4] = cvtest::randReal(rng)*0.004 - 0.002; dist 312 modules/calib3d/test/test_undistort.cpp dist[2] = dist[3] = 0; dist 314 modules/calib3d/test/test_undistort.cpp dist[4] = 0; dist 386 modules/calib3d/test/test_undistort.cpp double* dist = new double[dist_size ]; dist 394 modules/calib3d/test/test_undistort.cpp CvMat _distort = cvMat(test_mat[INPUT][2].rows,test_mat[INPUT][2].cols,CV_64F,dist); dist 444 modules/calib3d/test/test_undistort.cpp delete[] dist; dist 698 modules/calib3d/test/test_undistort.cpp vector<double> dist(dist_size); dist 703 modules/calib3d/test/test_undistort.cpp Mat _distort(test_mat[INPUT][2].size(),CV_64F,&dist[0]); dist 723 modules/calib3d/test/test_undistort.cpp dist[0] = cvtest::randReal(rng)*0.06 - 0.03; dist 724 modules/calib3d/test/test_undistort.cpp dist[1] = cvtest::randReal(rng)*0.06 - 0.03; dist 725 modules/calib3d/test/test_undistort.cpp if( dist[0]*dist[1] > 0 ) dist 726 modules/calib3d/test/test_undistort.cpp dist[1] = -dist[1]; dist 729 modules/calib3d/test/test_undistort.cpp dist[2] = cvtest::randReal(rng)*0.004 - 0.002; dist 730 modules/calib3d/test/test_undistort.cpp dist[3] = cvtest::randReal(rng)*0.004 - 0.002; dist 732 modules/calib3d/test/test_undistort.cpp dist[4] = cvtest::randReal(rng)*0.004 - 0.002; dist 736 modules/calib3d/test/test_undistort.cpp dist[2] = dist[3] = 0; dist 738 modules/calib3d/test/test_undistort.cpp dist[4] = 0; dist 793 modules/calib3d/test/test_undistort.cpp vector<double> dist(dist_size); dist 801 modules/calib3d/test/test_undistort.cpp Mat _distort(test_mat[INPUT][2].size(),CV_64F,&dist[0]); dist 845 modules/calib3d/test/test_undistort.cpp double* dist = new double[dist_size ]; dist 853 modules/calib3d/test/test_undistort.cpp CvMat _distort = cvMat(test_mat[INPUT][2].rows,test_mat[INPUT][2].cols,CV_64F,dist); dist 895 modules/calib3d/test/test_undistort.cpp delete[] dist; dist 106 modules/calib3d/test/test_undistort_badarg.cpp double dist[4] = {0.01,0.02,0.001,0.0005}; dist 116 modules/calib3d/test/test_undistort_badarg.cpp CvMat _distortion_coeffs_orig = cvMat(1,4,CV_64F,dist); dist 342 modules/calib3d/test/test_undistort_badarg.cpp double dist[4] = {0.01,0.02,0.001,0.0005}; dist 349 modules/calib3d/test/test_undistort_badarg.cpp CvMat _distortion_coeffs_orig = cvMat(1,4,CV_64F,dist); dist 464 modules/calib3d/test/test_undistort_badarg.cpp double dist[4] = {0.01,0.02,0.001,0.0005}; dist 470 modules/calib3d/test/test_undistort_badarg.cpp CvMat _distortion_coeffs_orig = cvMat(1,4,CV_64F,dist); dist 677 modules/core/include/opencv2/core.hpp OutputArray dist, int dtype, OutputArray nidx, dist 57 modules/core/include/opencv2/core/cuda/detail/vec_distance_detail.hpp static __device__ void calcCheck(const T1* vecCached, const T2* vecGlob, int len, Dist& dist, int ind) dist 66 modules/core/include/opencv2/core/cuda/detail/vec_distance_detail.hpp dist.reduceIter(val1, val2); dist 68 modules/core/include/opencv2/core/cuda/detail/vec_distance_detail.hpp UnrollVecDiffCached<THREAD_DIM, N - 1>::calcCheck(vecCached, vecGlob, len, dist, ind + THREAD_DIM); dist 73 modules/core/include/opencv2/core/cuda/detail/vec_distance_detail.hpp static __device__ void calcWithoutCheck(const T1* vecCached, const T2* vecGlob, Dist& dist) dist 81 modules/core/include/opencv2/core/cuda/detail/vec_distance_detail.hpp dist.reduceIter(val1, val2); dist 83 modules/core/include/opencv2/core/cuda/detail/vec_distance_detail.hpp UnrollVecDiffCached<THREAD_DIM, N - 1>::calcWithoutCheck(vecCached, vecGlob, dist); dist 103 modules/core/include/opencv2/core/cuda/detail/vec_distance_detail.hpp static __device__ __forceinline__ void calc(const T1* vecCached, const T2* vecGlob, int len, Dist& dist, int tid) dist 105 modules/core/include/opencv2/core/cuda/detail/vec_distance_detail.hpp UnrollVecDiffCached<THREAD_DIM, MAX_LEN / THREAD_DIM>::calcCheck(vecCached, vecGlob, len, dist, tid); dist 111 modules/core/include/opencv2/core/cuda/detail/vec_distance_detail.hpp static __device__ __forceinline__ void calc(const T1* vecCached, const T2* vecGlob, int len, Dist& dist, int tid) dist 113 modules/core/include/opencv2/core/cuda/detail/vec_distance_detail.hpp UnrollVecDiffCached<THREAD_DIM, MAX_LEN / THREAD_DIM>::calcWithoutCheck(vecCached, vecGlob + tid, dist); dist 160 modules/core/include/opencv2/core/cuda/vec_distance.hpp __device__ void calcVecDiffGlobal(const T1* vec1, const T2* vec2, int len, Dist& dist, typename Dist::result_type* smem, int tid) dist 170 modules/core/include/opencv2/core/cuda/vec_distance.hpp dist.reduceIter(val1, val2); dist 173 modules/core/include/opencv2/core/cuda/vec_distance.hpp dist.reduceAll<THREAD_DIM>(smem, tid); dist 178 modules/core/include/opencv2/core/cuda/vec_distance.hpp __device__ __forceinline__ void calcVecDiffCached(const T1* vecCached, const T2* vecGlob, int len, Dist& dist, typename Dist::result_type* smem, int tid) dist 180 modules/core/include/opencv2/core/cuda/vec_distance.hpp vec_distance_detail::VecDiffCachedCalculator<THREAD_DIM, MAX_LEN, LEN_EQ_MAX_LEN>::calc(vecCached, vecGlob, len, dist, tid); dist 182 modules/core/include/opencv2/core/cuda/vec_distance.hpp dist.reduceAll<THREAD_DIM>(smem, tid); dist 194 modules/core/include/opencv2/core/cuda/vec_distance.hpp __device__ __forceinline__ void calc(const T2* vec2, int len, Dist& dist, typename Dist::result_type* smem, int tid) const dist 196 modules/core/include/opencv2/core/cuda/vec_distance.hpp calcVecDiffGlobal<THREAD_DIM>(vec1, vec2, len, dist, smem, tid); dist 221 modules/core/include/opencv2/core/cuda/vec_distance.hpp __device__ __forceinline__ void calc(const T2* vec2, int len, Dist& dist, typename Dist::result_type* smem, int tid) const dist 223 modules/core/include/opencv2/core/cuda/vec_distance.hpp calcVecDiffCached<THREAD_DIM, MAX_LEN, LEN_EQ_MAX_LEN>(vec1Vals, vec2, len, dist, smem, tid); dist 70 modules/core/src/kmeans.cpp dist(_dist), dist 82 modules/core/src/kmeans.cpp tdist2[i] = std::min(normL2Sqr(data + step*i, data + stepci, dims), dist[i]); dist 91 modules/core/src/kmeans.cpp const float *dist; dist 110 modules/core/src/kmeans.cpp float* dist = &_dist[0], *tdist = dist + N, *tdist2 = tdist + N; dist 117 modules/core/src/kmeans.cpp dist[i] = normL2Sqr(data + step*i, data + step*centers[0], dims); dist 118 modules/core/src/kmeans.cpp sum0 += dist[i]; dist 130 modules/core/src/kmeans.cpp if( (p -= dist[i]) <= 0 ) dist 135 modules/core/src/kmeans.cpp KMeansPPDistanceComputer(tdist2, data, dist, dims, step, step*ci)); dist 150 modules/core/src/kmeans.cpp std::swap(dist, tdist); dist 192 modules/core/src/kmeans.cpp const double dist = normL2Sqr(sample, center, dims); dist 194 modules/core/src/kmeans.cpp if( min_dist > dist ) dist 196 modules/core/src/kmeans.cpp min_dist = dist; dist 387 modules/core/src/kmeans.cpp double dist = normL2Sqr(sample, _old_center, dims); dist 389 modules/core/src/kmeans.cpp if( max_dist <= dist ) dist 391 modules/core/src/kmeans.cpp max_dist = dist; dist 419 modules/core/src/kmeans.cpp double dist = 0; dist 424 modules/core/src/kmeans.cpp dist += t*t; dist 426 modules/core/src/kmeans.cpp max_center_shift = std::max(max_center_shift, dist); dist 436 modules/core/src/kmeans.cpp double* dist = dists.ptr<double>(0); dist 438 modules/core/src/kmeans.cpp KMeansDistanceComputer(dist, labels, data, centers)); dist 442 modules/core/src/kmeans.cpp compactness += dist[i]; dist 3433 modules/core/src/stat.cpp int nvecs, int len, _Rt* dist, const uchar* mask) dist 3439 modules/core/src/stat.cpp dist[i] = normL1<_Tp, _Rt>(src1, src2 + step2*i, len); dist 3445 modules/core/src/stat.cpp dist[i] = mask[i] ? normL1<_Tp, _Rt>(src1, src2 + step2*i, len) : val0; dist 3451 modules/core/src/stat.cpp int nvecs, int len, _Rt* dist, const uchar* mask) dist 3457 modules/core/src/stat.cpp dist[i] = normL2Sqr<_Tp, _Rt>(src1, src2 + step2*i, len); dist 3463 modules/core/src/stat.cpp dist[i] = mask[i] ? normL2Sqr<_Tp, _Rt>(src1, src2 + step2*i, len) : val0; dist 3469 modules/core/src/stat.cpp int nvecs, int len, _Rt* dist, const uchar* mask) dist 3475 modules/core/src/stat.cpp dist[i] = std::sqrt(normL2Sqr<_Tp, _Rt>(src1, src2 + step2*i, len)); dist 3481 modules/core/src/stat.cpp dist[i] = mask[i] ? std::sqrt(normL2Sqr<_Tp, _Rt>(src1, src2 + step2*i, len)) : val0; dist 3486 modules/core/src/stat.cpp int nvecs, int len, int* dist, const uchar* mask) dist 3492 modules/core/src/stat.cpp dist[i] = hal::normHamming(src1, src2 + step2*i, len); dist 3500 modules/core/src/stat.cpp dist[i] = hal::normHamming(src1, src2 + step2*i, len); dist 3502 modules/core/src/stat.cpp dist[i] = val0; dist 3508 modules/core/src/stat.cpp int nvecs, int len, int* dist, const uchar* mask) dist 3514 modules/core/src/stat.cpp dist[i] = hal::normHamming(src1, src2 + step2*i, len, 2); dist 3522 modules/core/src/stat.cpp dist[i] = hal::normHamming(src1, src2 + step2*i, len, 2); dist 3524 modules/core/src/stat.cpp dist[i] = val0; dist 3530 modules/core/src/stat.cpp int nvecs, int len, int* dist, const uchar* mask) dist 3532 modules/core/src/stat.cpp batchDistL1_<uchar, int>(src1, src2, step2, nvecs, len, dist, mask); dist 3536 modules/core/src/stat.cpp int nvecs, int len, float* dist, const uchar* mask) dist 3538 modules/core/src/stat.cpp batchDistL1_<uchar, float>(src1, src2, step2, nvecs, len, dist, mask); dist 3542 modules/core/src/stat.cpp int nvecs, int len, int* dist, const uchar* mask) dist 3544 modules/core/src/stat.cpp batchDistL2Sqr_<uchar, int>(src1, src2, step2, nvecs, len, dist, mask); dist 3548 modules/core/src/stat.cpp int nvecs, int len, float* dist, const uchar* mask) dist 3550 modules/core/src/stat.cpp batchDistL2Sqr_<uchar, float>(src1, src2, step2, nvecs, len, dist, mask); dist 3554 modules/core/src/stat.cpp int nvecs, int len, float* dist, const uchar* mask) dist 3556 modules/core/src/stat.cpp batchDistL2_<uchar, float>(src1, src2, step2, nvecs, len, dist, mask); dist 3560 modules/core/src/stat.cpp int nvecs, int len, float* dist, const uchar* mask) dist 3562 modules/core/src/stat.cpp batchDistL1_<float, float>(src1, src2, step2, nvecs, len, dist, mask); dist 3566 modules/core/src/stat.cpp int nvecs, int len, float* dist, const uchar* mask) dist 3568 modules/core/src/stat.cpp batchDistL2Sqr_<float, float>(src1, src2, step2, nvecs, len, dist, mask); dist 3572 modules/core/src/stat.cpp int nvecs, int len, float* dist, const uchar* mask) dist 3574 modules/core/src/stat.cpp batchDistL2_<float, float>(src1, src2, step2, nvecs, len, dist, mask); dist 3578 modules/core/src/stat.cpp int nvecs, int len, uchar* dist, const uchar* mask); dist 3590 modules/core/src/stat.cpp dist = &_dist; dist 3606 modules/core/src/stat.cpp K > 0 ? (uchar*)bufptr : dist->ptr(i), mask->data ? mask->ptr(i) : 0); dist 3613 modules/core/src/stat.cpp int* distptr = (int*)dist->ptr(i); dist 3637 modules/core/src/stat.cpp Mat *dist; dist 3667 modules/core/src/stat.cpp Mat dist = _dist.getMat(), nidx; dist 3670 modules/core/src/stat.cpp _nidx.create(dist.size(), CV_32S); dist 3676 modules/core/src/stat.cpp dist = Scalar::all(dtype == CV_32S ? (double)INT_MAX : (double)FLT_MAX); dist 3697 modules/core/src/stat.cpp int d = tdist.at<int>(i), d0 = dist.at<int>(idx); dist 3700 modules/core/src/stat.cpp dist.at<int>(idx) = d; dist 3710 modules/core/src/stat.cpp float d = tdist.at<float>(i), d0 = dist.at<float>(idx); dist 3713 modules/core/src/stat.cpp dist.at<float>(idx) = d; dist 3755 modules/core/src/stat.cpp BatchDistInvoker(src1, src2, dist, nidx, K, mask, update, func)); dist 36 modules/features2d/perf/perf_batchDistance.cpp Mat dist; dist 43 modules/features2d/perf/perf_batchDistance.cpp batchDistance(queryDescriptors, trainDescriptors, dist, destinationType, (isCrossCheck) ? ndix : noArray(), dist 47 modules/features2d/perf/perf_batchDistance.cpp SANITY_CHECK(dist); dist 63 modules/features2d/perf/perf_batchDistance.cpp Mat dist; dist 70 modules/features2d/perf/perf_batchDistance.cpp batchDistance(queryDescriptors, trainDescriptors, dist, CV_32S, (isCrossCheck) ? ndix : noArray(), dist 74 modules/features2d/perf/perf_batchDistance.cpp SANITY_CHECK(dist); dist 90 modules/features2d/perf/perf_batchDistance.cpp Mat dist; dist 98 modules/features2d/perf/perf_batchDistance.cpp batchDistance(queryDescriptors, trainDescriptors, dist, CV_32F, (isCrossCheck) ? ndix : noArray(), dist 102 modules/features2d/perf/perf_batchDistance.cpp SANITY_CHECK(dist); dist 118 modules/features2d/perf/perf_batchDistance.cpp Mat dist; dist 126 modules/features2d/perf/perf_batchDistance.cpp batchDistance(queryDescriptors, trainDescriptors, dist, CV_32F, (isCrossCheck) ? ndix : noArray(), dist 130 modules/features2d/perf/perf_batchDistance.cpp SANITY_CHECK(dist, 1e-4); dist 328 modules/features2d/src/blobdetector.cpp double dist = norm(centers[j][ centers[j].size() / 2 ].location - curCenters[i].location); dist 329 modules/features2d/src/blobdetector.cpp isNew = dist >= params.minDistBetweenBlobs && dist >= centers[j][ centers[j].size() / 2 ].radius && dist >= curCenters[i].radius; dist 260 modules/features2d/src/kaze/AKAZEFeatures.cpp float dist = 0.0, ratio = 0.0, smax = 0.0; dist 315 modules/features2d/src/kaze/AKAZEFeatures.cpp dist = distx * distx + disty * disty; dist 316 modules/features2d/src/kaze/AKAZEFeatures.cpp if (dist <= point.size * point.size) { dist 375 modules/features2d/src/kaze/AKAZEFeatures.cpp dist = distx * distx + disty * disty; dist 376 modules/features2d/src/kaze/AKAZEFeatures.cpp if (dist <= pt.size * pt.size) { dist 314 modules/features2d/src/kaze/KAZEFeatures.cpp float dist = 0.0, smax = 3.0; dist 348 modules/features2d/src/kaze/KAZEFeatures.cpp dist = pow(kpts_par_[i][j].pt.x - kpts[ik].pt.x, 2) + pow(kpts_par_[i][j].pt.y - kpts[ik].pt.y, 2); dist 350 modules/features2d/src/kaze/KAZEFeatures.cpp if (dist < evolution_[level].sigma_size*evolution_[level].sigma_size) { dist 809 modules/features2d/src/matchers.cpp Mat dist, nidx; dist 820 modules/features2d/src/matchers.cpp batchDistance(queryDescriptors, trainDescCollection[iIdx], dist, dtype, nidx, dist 828 modules/features2d/src/matchers.cpp dist.convertTo(temp, CV_32F); dist 829 modules/features2d/src/matchers.cpp dist = temp; dist 834 modules/features2d/src/matchers.cpp const float* distptr = dist.ptr<float>(qIdx); dist 930 modules/features2d/src/matchers.cpp Mat dist, distf; dist 938 modules/features2d/src/matchers.cpp batchDistance(queryDescriptors, trainDescCollection[iIdx], dist, dtype, noArray(), dist 941 modules/features2d/src/matchers.cpp dist.convertTo(distf, CV_32F); dist 943 modules/features2d/src/matchers.cpp distf = dist; dist 1283 modules/features2d/src/matchers.cpp float dist = 0; dist 1285 modules/features2d/src/matchers.cpp dist = static_cast<float>( dists.at<int>(i,j) ); dist 1287 modules/features2d/src/matchers.cpp dist = std::sqrt(dists.at<float>(i,j)); dist 1288 modules/features2d/src/matchers.cpp matches[i].push_back( DMatch( i, trainIdx, imgIdx, dist ) ); dist 128 modules/features2d/test/test_descriptors_regression.cpp DistanceType dist = distance( validDescriptors.ptr<ValueType>(y), calcDescriptors.ptr<ValueType>(y), dimension ); dist 129 modules/features2d/test/test_descriptors_regression.cpp if( dist > curMaxDist ) dist 130 modules/features2d/test/test_descriptors_regression.cpp curMaxDist = dist; dist 118 modules/features2d/test/test_detectors_regression.cpp float dist = (float)norm( p1.pt - p2.pt ); dist 119 modules/features2d/test/test_detectors_regression.cpp return (dist < maxPtDif && dist 180 modules/features2d/test/test_nearestneighbors.cpp Mat dist( points.rows, neighbors.cols, CV_32FC1); dist 184 modules/features2d/test/test_nearestneighbors.cpp index->knnSearch( points, neighbors, dist, knn, SearchParams() ); dist 193 modules/features2d/test/test_nearestneighbors.cpp vector<float> dists( dist.cols, 0 ); dist 209 modules/features2d/test/test_nearestneighbors.cpp Mat dist( 1, neighbors.cols, CV_32FC1); dist 220 modules/features2d/test/test_nearestneighbors.cpp index->radiusSearch( p, n, dist, radius, neighbors.cols, SearchParams() ); dist 226 modules/features2d/test/test_nearestneighbors.cpp vector<float> dists( dist.cols, 0 ); dist 793 modules/flann/include/opencv2/flann/dist.h ResultType operator()( ResultType dist ) { return dist*dist; } dist 801 modules/flann/include/opencv2/flann/dist.h ResultType operator()( ResultType dist ) { return dist; } dist 808 modules/flann/include/opencv2/flann/dist.h ResultType operator()( ResultType dist ) { return dist; } dist 816 modules/flann/include/opencv2/flann/dist.h ResultType operator()( ResultType dist ) { return dist; } dist 823 modules/flann/include/opencv2/flann/dist.h ResultType operator()( ResultType dist ) { return dist; } dist 830 modules/flann/include/opencv2/flann/dist.h ResultType operator()( ResultType dist ) { return dist; } dist 835 modules/flann/include/opencv2/flann/dist.h typename Distance::ResultType ensureSquareDistance( typename Distance::ResultType dist ) dist 840 modules/flann/include/opencv2/flann/dist.h return dummy( dist ); dist 853 modules/flann/include/opencv2/flann/dist.h ResultType operator()( ResultType dist ) { return dist; } dist 861 modules/flann/include/opencv2/flann/dist.h ResultType operator()( ResultType dist ) { return sqrt(dist); } dist 868 modules/flann/include/opencv2/flann/dist.h ResultType operator()( ResultType dist ) { return sqrt(dist); } dist 876 modules/flann/include/opencv2/flann/dist.h ResultType operator()( ResultType dist ) { return sqrt(dist); } dist 883 modules/flann/include/opencv2/flann/dist.h ResultType operator()( ResultType dist ) { return sqrt(dist); } dist 890 modules/flann/include/opencv2/flann/dist.h ResultType operator()( ResultType dist ) { return sqrt(dist); } dist 895 modules/flann/include/opencv2/flann/dist.h typename Distance::ResultType ensureSimpleDistance( typename Distance::ResultType dist ) dist 900 modules/flann/include/opencv2/flann/dist.h return dummy( dist ); dist 164 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h DistanceType dist = distance(dataset[centers[0]],dataset[dsindices[j]],dataset.cols); dist 167 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h if (tmp_dist<dist) { dist 168 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h dist = tmp_dist; dist 171 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h if (dist>best_val) { dist 172 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h best_val = dist; dist 243 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h DistanceType dist = distance(dataset[dsindices[i]], dataset[dsindices[index]], dataset.cols); dist 244 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h newPot += std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); dist 258 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h DistanceType dist = distance(dataset[dsindices[i]], dataset[dsindices[bestNewIndex]], dataset.cols); dist 259 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h closestDistSq[i] = std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); dist 657 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h DistanceType dist = distance(point, dataset[centers[0]], veclen_); dist 661 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h if (dist>new_dist) { dist 663 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h dist = new_dist; dist 666 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h cost += dist; dist 756 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h DistanceType dist = distance(dataset[index], vec, veclen_); dist 757 modules/flann/include/opencv2/flann/hierarchical_clustering_index.h result.addPoint(dist, index); dist 88 modules/flann/include/opencv2/flann/index_testing.h float& time, typename Distance::ResultType& dist, const Distance& distance, int skipMatches) dist 127 modules/flann/include/opencv2/flann/index_testing.h dist = distR/(testData.rows*nn); dist 130 modules/flann/include/opencv2/flann/index_testing.h checks, precicion, time, 1000.0 * time / testData.rows, dist); dist 147 modules/flann/include/opencv2/flann/index_testing.h DistanceType dist = 0; dist 148 modules/flann/include/opencv2/flann/index_testing.h precision = search_with_ground_truth(index, inputData, testData, matches, nn, checks, time, dist, distance, skipMatches); dist 169 modules/flann/include/opencv2/flann/index_testing.h DistanceType dist; dist 171 modules/flann/include/opencv2/flann/index_testing.h p2 = search_with_ground_truth(index, inputData, testData, matches, nn, c2, time, dist, distance, skipMatches); dist 183 modules/flann/include/opencv2/flann/index_testing.h p2 = search_with_ground_truth(index, inputData, testData, matches, nn, c2, time, dist, distance, skipMatches); dist 194 modules/flann/include/opencv2/flann/index_testing.h realPrecision = search_with_ground_truth(index, inputData, testData, matches, nn, cx, time, dist, distance, skipMatches); dist 208 modules/flann/include/opencv2/flann/index_testing.h realPrecision = search_with_ground_truth(index, inputData, testData, matches, nn, cx, time, dist, distance, skipMatches); dist 251 modules/flann/include/opencv2/flann/index_testing.h DistanceType dist; dist 253 modules/flann/include/opencv2/flann/index_testing.h p2 = search_with_ground_truth(index, inputData, testData, matches, nn, c2, time, dist, distance, skipMatches); dist 274 modules/flann/include/opencv2/flann/index_testing.h p2 = search_with_ground_truth(index, inputData, testData, matches, nn, c2, time, dist, distance, skipMatches); dist 286 modules/flann/include/opencv2/flann/index_testing.h realPrecision = search_with_ground_truth(index, inputData, testData, matches, nn, cx, time, dist, distance, skipMatches); dist 300 modules/flann/include/opencv2/flann/index_testing.h realPrecision = search_with_ground_truth(index, inputData, testData, matches, nn, cx, time, dist, distance, skipMatches); dist 329 modules/flann/include/opencv2/flann/kdtree_index.h DistanceType dist = v[k] - mean_[k]; dist 330 modules/flann/include/opencv2/flann/kdtree_index.h var_[k] += dist * dist; dist 486 modules/flann/include/opencv2/flann/kdtree_index.h DistanceType dist = distance_(dataset_[index], vec, veclen_); dist 487 modules/flann/include/opencv2/flann/kdtree_index.h result_set.addPoint(dist,index); dist 524 modules/flann/include/opencv2/flann/kdtree_index.h DistanceType dist = distance_(dataset_[index], vec, veclen_); dist 525 modules/flann/include/opencv2/flann/kdtree_index.h result_set.addPoint(dist,index); dist 550 modules/flann/include/opencv2/flann/kdtree_single_index.h DistanceType dist = distance_(vec, data_[index], dim_, worst_dist); dist 551 modules/flann/include/opencv2/flann/kdtree_single_index.h if (dist<worst_dist) { dist 552 modules/flann/include/opencv2/flann/kdtree_single_index.h result_set.addPoint(dist,vind_[i]); dist 163 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType dist = distance_(dataset_[centers[0]],dataset_[indices[j]],dataset_.cols); dist 166 modules/flann/include/opencv2/flann/kmeans_index.h if (tmp_dist<dist) { dist 167 modules/flann/include/opencv2/flann/kmeans_index.h dist = tmp_dist; dist 170 modules/flann/include/opencv2/flann/kmeans_index.h if (dist>best_val) { dist 171 modules/flann/include/opencv2/flann/kmeans_index.h best_val = dist; dist 240 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType dist = distance_(dataset_[indices[i]], dataset_[indices[index]], dataset_.cols); dist 241 modules/flann/include/opencv2/flann/kmeans_index.h newPot += std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); dist 255 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType dist = distance_(dataset_[indices[i]], dataset_[indices[bestNewIndex]], dataset_.cols); dist 256 modules/flann/include/opencv2/flann/kmeans_index.h closestDistSq[i] = std::min( ensureSquareDistance<Distance>(dist), closestDistSq[i] ); dist 917 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType dist = distance_(dataset_[index], vec, veclen_); dist 918 modules/flann/include/opencv2/flann/kmeans_index.h result.addPoint(dist, index); dist 990 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType dist = distance_(dataset_[index], vec, veclen_); dist 991 modules/flann/include/opencv2/flann/kmeans_index.h result.addPoint(dist, index); dist 1017 modules/flann/include/opencv2/flann/kmeans_index.h DistanceType dist = distance_(q, node->childs[i]->pivot, veclen_); dist 1020 modules/flann/include/opencv2/flann/kmeans_index.h while (domain_distances[j]<dist && j<i) j++; dist 1025 modules/flann/include/opencv2/flann/kmeans_index.h domain_distances[j] = dist; dist 110 modules/flann/include/opencv2/flann/linear_index.h DistanceType dist = distance_(data, vec, dataset_.cols); dist 111 modules/flann/include/opencv2/flann/linear_index.h resultSet.addPoint(dist, (int)i); dist 56 modules/flann/include/opencv2/flann/result_set.h BranchStruct(const T& aNode, DistanceType dist) : node(aNode), mindist(dist) {} dist 73 modules/flann/include/opencv2/flann/result_set.h virtual void addPoint(DistanceType dist, int index) = 0; dist 118 modules/flann/include/opencv2/flann/result_set.h void addPoint(DistanceType dist, int index) dist 120 modules/flann/include/opencv2/flann/result_set.h if (dist >= worst_distance_) return; dist 124 modules/flann/include/opencv2/flann/result_set.h if ( (dists[i-1]>dist) || ((dist==dists[i-1])&&(indices[i-1]>index)) ) dist 126 modules/flann/include/opencv2/flann/result_set.h if (dists[i-1]>dist) dist 137 modules/flann/include/opencv2/flann/result_set.h dists[i] = dist; dist 185 modules/flann/include/opencv2/flann/result_set.h void addPoint(DistanceType dist, int index) dist 187 modules/flann/include/opencv2/flann/result_set.h if (dist >= worst_distance_) return; dist 191 modules/flann/include/opencv2/flann/result_set.h if ( (dists[i-1]<=dist) && ((dist!=dists[i-1])||(indices[i-1]<=index)) ) dist 193 modules/flann/include/opencv2/flann/result_set.h if (dists[i-1]<=dist) dist 198 modules/flann/include/opencv2/flann/result_set.h while ((j >= 0) && (dists[j] == dist)) { dist 213 modules/flann/include/opencv2/flann/result_set.h dists[i] = dist; dist 263 modules/flann/include/opencv2/flann/result_set.h void addPoint(DistanceType dist, int index) dist 265 modules/flann/include/opencv2/flann/result_set.h if (dist<radius) { dist 267 modules/flann/include/opencv2/flann/result_set.h dists[count] = dist; dist 292 modules/flann/include/opencv2/flann/result_set.h DistIndex(DistanceType dist, unsigned int index) : dist 293 modules/flann/include/opencv2/flann/result_set.h dist_(dist), index_(index) dist 327 modules/flann/include/opencv2/flann/result_set.h virtual void copy(int* indices, DistanceType* dist, int n_neighbors = -1) const dist 331 modules/flann/include/opencv2/flann/result_set.h dist_indices_.end(); dist_index != dist_index_end; ++dist_index, ++indices, ++dist) { dist 333 modules/flann/include/opencv2/flann/result_set.h *dist = dist_index->dist_; dist 339 modules/flann/include/opencv2/flann/result_set.h dist_indices_.end(); (dist_index != dist_index_end) && (i < n_neighbors); ++dist_index, ++indices, ++dist, ++i) { dist 341 modules/flann/include/opencv2/flann/result_set.h *dist = dist_index->dist_; dist 351 modules/flann/include/opencv2/flann/result_set.h virtual void sortAndCopy(int* indices, DistanceType* dist, int n_neighbors = -1) const dist 353 modules/flann/include/opencv2/flann/result_set.h copy(indices, dist, n_neighbors); dist 405 modules/flann/include/opencv2/flann/result_set.h inline void addPoint(DistanceType dist, int index) dist 408 modules/flann/include/opencv2/flann/result_set.h if (dist >= worst_distance_) return; dist 409 modules/flann/include/opencv2/flann/result_set.h dist_indices_.insert(DistIndex(dist, index)); dist 464 modules/flann/include/opencv2/flann/result_set.h void addPoint(DistanceType dist, int index) dist 466 modules/flann/include/opencv2/flann/result_set.h if (dist <= radius_) dist_indices_.insert(DistIndex(dist, index)); dist 311 modules/flann/src/miniflann.cpp buildIndex_(void*& index, const Mat& data, const IndexParams& params, const Distance& dist = Distance()) dist 320 modules/flann/src/miniflann.cpp IndexType* _index = new IndexType(dataset, get_params(params), dist); dist 326 modules/flann/src/miniflann.cpp buildIndex(void*& index, const Mat& data, const IndexParams& params, const Distance& dist = Distance()) dist 328 modules/flann/src/miniflann.cpp buildIndex_<Distance, ::cvflann::Index<Distance> >(index, data, params, dist); dist 702 modules/flann/src/miniflann.cpp bool loadIndex_(Index* index0, void*& index, const Mat& data, FILE* fin, const Distance& dist=Distance()) dist 711 modules/flann/src/miniflann.cpp IndexType* _index = new IndexType(dataset, params, dist); dist 718 modules/flann/src/miniflann.cpp bool loadIndex(Index* index0, void*& index, const Mat& data, FILE* fin, const Distance& dist=Distance()) dist 720 modules/flann/src/miniflann.cpp return loadIndex_<Distance, ::cvflann::Index<Distance> >(index0, index, data, fin, dist); dist 183 modules/imgcodecs/test/test_drawing.cpp int dist = 5; dist 186 modules/imgcodecs/test/test_drawing.cpp textOrg = Point(5,5)+Point(0,textSize.height+dist); dist 191 modules/imgcodecs/test/test_drawing.cpp textOrg += Point(0,textSize.height+dist); dist 196 modules/imgcodecs/test/test_drawing.cpp textOrg += Point(0,textSize.height+dist); dist 200 modules/imgcodecs/test/test_drawing.cpp textOrg += Point(0,textSize.height+dist); dist 204 modules/imgcodecs/test/test_drawing.cpp textOrg += Point(0,textSize.height+dist); dist 209 modules/imgcodecs/test/test_drawing.cpp textOrg += Point(0,180) + Point(0,textSize.height+dist); dist 213 modules/imgcodecs/test/test_drawing.cpp textOrg += Point(0,textSize.height+dist); dist 217 modules/imgcodecs/test/test_drawing.cpp textOrg += Point(0,textSize.height+dist); dist 220 modules/imgcodecs/test/test_drawing.cpp dist = 15, fontScale = 0.5; dist 222 modules/imgcodecs/test/test_drawing.cpp textOrg += Point(0,textSize.height+dist); dist 343 modules/imgcodecs/test/test_drawing.cpp int dist = 5; dist 348 modules/imgcodecs/test/test_drawing.cpp textOrg = cvPoint(5, 5+textSize.height+dist); dist 353 modules/imgcodecs/test/test_drawing.cpp textOrg = cvPoint(textOrg.x,textOrg.y+textSize.height+dist); dist 358 modules/imgcodecs/test/test_drawing.cpp textOrg = cvPoint(textOrg.x,textOrg.y+textSize.height+dist); dist 363 modules/imgcodecs/test/test_drawing.cpp textOrg = cvPoint(textOrg.x,textOrg.y+textSize.height+dist); dist 368 modules/imgcodecs/test/test_drawing.cpp textOrg = cvPoint(textOrg.x,textOrg.y+textSize.height+dist); dist 373 modules/imgcodecs/test/test_drawing.cpp textOrg = cvPoint(textOrg.x,textOrg.y+textSize.height+dist + 180); dist 378 modules/imgcodecs/test/test_drawing.cpp textOrg = cvPoint(textOrg.x,textOrg.y+textSize.height+dist); dist 383 modules/imgcodecs/test/test_drawing.cpp textOrg = cvPoint(textOrg.x,textOrg.y+textSize.height+dist); dist 386 modules/imgcodecs/test/test_drawing.cpp dist = 15; dist 389 modules/imgcodecs/test/test_drawing.cpp textOrg = cvPoint(textOrg.x,textOrg.y+textSize.height+dist); dist 540 modules/imgproc/src/approx.cpp double dist, max_dist = 0; dist 552 modules/imgproc/src/approx.cpp dist = dx * dx + dy * dy; dist 554 modules/imgproc/src/approx.cpp if( dist > max_dist ) dist 556 modules/imgproc/src/approx.cpp max_dist = dist; dist 587 modules/imgproc/src/approx.cpp double dx, dy, dist, max_dist = 0; dist 597 modules/imgproc/src/approx.cpp dist = fabs((pt.y - start_pt.y) * dx - (pt.x - start_pt.x) * dy); dist 599 modules/imgproc/src/approx.cpp if( dist > max_dist ) dist 601 modules/imgproc/src/approx.cpp max_dist = dist; dist 642 modules/imgproc/src/approx.cpp double dx, dy, dist, successive_inner_product; dist 647 modules/imgproc/src/approx.cpp dist = fabs((pt.x - start_pt.x)*dy - (pt.y - start_pt.y)*dx); dist 651 modules/imgproc/src/approx.cpp if( dist * dist <= 0.5*eps*(dx*dx + dy*dy) && dx != 0 && dy != 0 && dist 317 modules/imgproc/src/convhull.cpp double dist = fabs(-dy0*dx + dx0*dy) * scale; dist 319 modules/imgproc/src/convhull.cpp if( dist > defect_depth ) dist 321 modules/imgproc/src/convhull.cpp defect_depth = dist; dist 683 modules/imgproc/src/convhull.cpp double dist = fabs(-dy0*dx + dx0*dy) * scale; dist 685 modules/imgproc/src/convhull.cpp if( dist > depth ) dist 687 modules/imgproc/src/convhull.cpp depth = dist; dist 80 modules/imgproc/src/distransform.cpp float* dist = _dist.ptr<float>(); dist 83 modules/imgproc/src/distransform.cpp int dststep = (int)(_dist.step/sizeof(dist[0])); dist 118 modules/imgproc/src/distransform.cpp float* d = (float*)(dist + i*dststep); dist 154 modules/imgproc/src/distransform.cpp float* dist = _dist.ptr<float>(); dist 157 modules/imgproc/src/distransform.cpp int dststep = (int)(_dist.step/sizeof(dist[0])); dist 200 modules/imgproc/src/distransform.cpp float* d = (float*)(dist + i*dststep); dist 245 modules/imgproc/src/distransform.cpp float* dist = _dist.ptr<float>(); dist 249 modules/imgproc/src/distransform.cpp int dststep = (int)(_dist.step/sizeof(dist[0])); dist 250 modules/imgproc/src/distransform.cpp int lstep = (int)(_labels.step/sizeof(dist[0])); dist 335 modules/imgproc/src/distransform.cpp float* d = (float*)(dist + i*dststep); dist 467 modules/imgproc/src/distransform.cpp int j, dist = m-1; dist 471 modules/imgproc/src/distransform.cpp dist = (dist + 1) & (sptr[0] == 0 ? 0 : -1); dist 472 modules/imgproc/src/distransform.cpp d[j] = dist; dist 475 modules/imgproc/src/distransform.cpp dist = m-1; dist 478 modules/imgproc/src/distransform.cpp dist = dist + 1 - sat_tab[dist - d[j]]; dist 479 modules/imgproc/src/distransform.cpp d[j] = dist; dist 480 modules/imgproc/src/distransform.cpp dptr[0] = sqr_tab[dist]; dist 417 modules/imgproc/src/drawing.cpp int a, dist = (pt1.y >> (XY_SHIFT - 5)) & 31; dist 419 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[dist + 32] >> 8) & 0xff; dist 424 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[dist] >> 8) & 0xff; dist 429 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[63 - dist] >> 8) & 0xff; dist 449 modules/imgproc/src/drawing.cpp int a, dist = (pt1.x >> (XY_SHIFT - 5)) & 31; dist 451 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[dist + 32] >> 8) & 0xff; dist 456 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[dist] >> 8) & 0xff; dist 461 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[63 - dist] >> 8) & 0xff; dist 492 modules/imgproc/src/drawing.cpp int a, dist = (pt1.y >> (XY_SHIFT - 5)) & 31; dist 494 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[dist + 32] >> 8) & 0xff; dist 499 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[dist] >> 8) & 0xff; dist 504 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[63 - dist] >> 8) & 0xff; dist 524 modules/imgproc/src/drawing.cpp int a, dist = (pt1.x >> (XY_SHIFT - 5)) & 31; dist 526 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[dist + 32] >> 8) & 0xff; dist 531 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[dist] >> 8) & 0xff; dist 536 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[63 - dist] >> 8) & 0xff; dist 575 modules/imgproc/src/drawing.cpp int a, dist = (pt1.y >> (XY_SHIFT - 5)) & 31; dist 577 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[dist + 32] >> 8) & 0xff; dist 582 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[dist] >> 8) & 0xff; dist 587 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[63 - dist] >> 8) & 0xff; dist 607 modules/imgproc/src/drawing.cpp int a, dist = (pt1.x >> (XY_SHIFT - 5)) & 31; dist 609 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[dist + 32] >> 8) & 0xff; dist 614 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[dist] >> 8) & 0xff; dist 619 modules/imgproc/src/drawing.cpp a = (ep_corr * FilterTable[63 - dist] >> 8) & 0xff; dist 65 modules/imgproc/src/gcgraph.hpp int dist; dist 172 modules/imgproc/src/gcgraph.hpp v->dist = 1; dist 208 modules/imgproc/src/gcgraph.hpp u->dist = v->dist + 1; dist 223 modules/imgproc/src/gcgraph.hpp if( u->dist > v->dist+1 && u->ts <= v->ts ) dist 228 modules/imgproc/src/gcgraph.hpp u->dist = v->dist + 1; dist 312 modules/imgproc/src/gcgraph.hpp d += u->dist; dist 324 modules/imgproc/src/gcgraph.hpp u->dist = 1; dist 342 modules/imgproc/src/gcgraph.hpp u->dist = --d; dist 350 modules/imgproc/src/gcgraph.hpp v2->dist = minDist; dist 120 modules/imgproc/src/geometry.cpp int dist; dist 134 modules/imgproc/src/geometry.cpp dist = (ip.y - v0.y)*(v.x - v0.x) - (ip.x - v0.x)*(v.y - v0.y); dist 135 modules/imgproc/src/geometry.cpp if( dist == 0 ) dist 138 modules/imgproc/src/geometry.cpp dist = -dist; dist 139 modules/imgproc/src/geometry.cpp counter += dist > 0; dist 162 modules/imgproc/src/geometry.cpp double dist; dist 179 modules/imgproc/src/geometry.cpp dist = (double)(pt.y - v0.y)*(v.x - v0.x) - (double)(pt.x - v0.x)*(v.y - v0.y); dist 180 modules/imgproc/src/geometry.cpp if( dist == 0 ) dist 183 modules/imgproc/src/geometry.cpp dist = -dist; dist 184 modules/imgproc/src/geometry.cpp counter += dist > 0; dist 202 modules/imgproc/src/linefit.cpp static double calcDist2D( const Point2f* points, int count, float *_line, float *dist ) dist 216 modules/imgproc/src/linefit.cpp dist[j] = (float) fabs( nx * x + ny * y ); dist 217 modules/imgproc/src/linefit.cpp sum_dist += dist[j]; dist 223 modules/imgproc/src/linefit.cpp static double calcDist3D( const Point3f* points, int count, float *_line, float *dist ) dist 243 modules/imgproc/src/linefit.cpp dist[j] = (float) std::sqrt( p1*p1 + p2*p2 + p3*p3 ); dist 244 modules/imgproc/src/linefit.cpp sum_dist += dist[j]; dist 315 modules/imgproc/src/linefit.cpp static void fitLine2D( const Point2f * points, int count, int dist, dist 330 modules/imgproc/src/linefit.cpp switch (dist) dist 455 modules/imgproc/src/linefit.cpp static void fitLine3D( Point3f * points, int count, int dist, dist 468 modules/imgproc/src/linefit.cpp switch (dist) dist 624 modules/imgproc/src/linefit.cpp cvFitLine( const CvArr* array, int dist, double param, dist 633 modules/imgproc/src/linefit.cpp cv::fitLine(points, linemat, dist, param, reps, aeps); dist 787 modules/imgproc/src/lsd.cpp double density = double(reg_size) / (dist(rec.x1, rec.y1, rec.x2, rec.y2) * rec.width); dist 801 modules/imgproc/src/lsd.cpp if (dist(xc, yc, reg[i].x, reg[i].y) < rec.width) dist 820 modules/imgproc/src/lsd.cpp density = double(reg_size) / (dist(rec.x1, rec.y1, rec.x2, rec.y2) * rec.width); dist 865 modules/imgproc/src/lsd.cpp (dist(rec.x1, rec.y1, rec.x2, rec.y2) * rec.width); dist 306 modules/imgproc/src/opencl/canny.cl int mag0 = dist(dx[0], dy[0]); dist 312 modules/imgproc/src/opencl/canny.cl int mag1 = dist(dx[j], dy[j]); dist 250 modules/imgproc/src/rotcalipers.cpp float dist; dist 253 modules/imgproc/src/rotcalipers.cpp dist = (float)fabs(dx * base_a + dy * base_b); dist 255 modules/imgproc/src/rotcalipers.cpp dist = (float)fabs(dx * (-base_b) + dy * base_a); dist 257 modules/imgproc/src/rotcalipers.cpp if( dist > max_dist ) dist 258 modules/imgproc/src/rotcalipers.cpp max_dist = dist; dist 113 modules/imgproc/src/shapedescr.cpp float dist = (float)norm(pts[i] - pts[j]); dist 115 modules/imgproc/src/shapedescr.cpp if( max_dist < dist ) dist 117 modules/imgproc/src/shapedescr.cpp max_dist = dist; dist 1069 modules/imgproc/src/thresh.cpp double a, b, dist = 0, tempdist; dist 1079 modules/imgproc/src/thresh.cpp if( tempdist > dist) dist 1081 modules/imgproc/src/thresh.cpp dist = tempdist; dist 180 modules/imgproc/test/test_approxpoly.cpp double dist; dist 217 modules/imgproc/test/test_approxpoly.cpp if( flag ) dist = sin_a * Pt.y + cos_a * Pt.x - d; dist 218 modules/imgproc/test/test_approxpoly.cpp else dist = sqrt( (double)(EndPt.y - Pt.y)*(EndPt.y - Pt.y) + (EndPt.x - Pt.x)*(EndPt.x - Pt.x) ); dist 219 modules/imgproc/test/test_approxpoly.cpp if( dist > Eps ) TotalErrors++; dist 454 modules/ml/include/opencv2/ml.hpp OutputArray dist=noArray() ) const = 0; dist 267 modules/ml/src/kdtree.cpp PQueueElem() : dist(0), idx(0) {} dist 268 modules/ml/src/kdtree.cpp PQueueElem(float _dist, int _idx) : dist(_dist), idx(_idx) {} dist 269 modules/ml/src/kdtree.cpp float dist; dist 289 modules/ml/src/kdtree.cpp float* dist = (float*)(idx + K + 1); dist 310 modules/ml/src/kdtree.cpp alt_d = pqueue[0].dist; dist 314 modules/ml/src/kdtree.cpp d = pqueue[0].dist; dist 320 modules/ml/src/kdtree.cpp if( right < qsize && pqueue[right].dist < pqueue[left].dist ) dist 322 modules/ml/src/kdtree.cpp if( pqueue[left].dist >= d ) dist 329 modules/ml/src/kdtree.cpp if( ncount == K && alt_d > dist[ncount-1] ) dist 353 modules/ml/src/kdtree.cpp dist[ncount] = d; dist 357 modules/ml/src/kdtree.cpp if( dist[i] <= d ) dist 359 modules/ml/src/kdtree.cpp std::swap(dist[i], dist[i+1]); dist 385 modules/ml/src/kdtree.cpp if( ncount == K && d > dist[ncount-1] ) dist 392 modules/ml/src/kdtree.cpp if( parent < 0 || pqueue[parent].dist <= d ) dist 409 modules/ml/src/kdtree.cpp sqrt(Mat(K, 1, CV_32F, dist), _dist); dist 71 modules/ml/src/kdtree.hpp OutputArray dist = noArray(), dist 484 modules/ml/src/knearest.cpp OutputArray dist=noArray() ) const dist 486 modules/ml/src/knearest.cpp return impl->findNearest(samples, k, results, neighborResponses, dist); dist 81 modules/objdetect/test/test_cascadeandhog.cpp float dist; dist 115 modules/objdetect/test/test_cascadeandhog.cpp fn[DIST_E] >> eps.dist; dist 181 modules/objdetect/test/test_cascadeandhog.cpp validationFS << DIST_E << eps.dist; dist 309 modules/objdetect/test/test_cascadeandhog.cpp float dist = min(imgSize.height, imgSize.width) * eps.dist; dist 359 modules/objdetect/test/test_cascadeandhog.cpp if( map[minIdx] != 0 || (minDist > dist) || (abs(cr->width - vr.width) > wDiff) || dist 138 modules/photo/src/fast_nlmeans_denoising_invoker.hpp double dist = almost_dist * almost_dist2actual_dist_multiplier; dist 140 modules/photo/src/fast_nlmeans_denoising_invoker.hpp D::template calcWeight<T, WT>(dist, h, fixed_point_mult_); dist 274 modules/photo/src/fast_nlmeans_denoising_invoker.hpp int dist = D::template calcDist<T>(extended_src_, dist 278 modules/photo/src/fast_nlmeans_denoising_invoker.hpp dist_sums[y][x] += dist; dist 279 modules/photo/src/fast_nlmeans_denoising_invoker.hpp col_dist_sums[tx + template_window_half_size_][y][x] += dist; dist 135 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp static inline WT f(double dist, const float *h, WT fixed_point_mult) dist 137 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp double w = std::exp(-dist*dist / (h[0]*h[0] * pixelInfo<T>::channels)); dist 150 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp static inline Vec<ET, n> f(double dist, const float *h, ET fixed_point_mult) dist 154 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp res[i] = calcWeight<T, ET>(dist, &h[i], fixed_point_mult); dist 180 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp static inline WT calcWeight(double dist, const float *h, dist 183 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp return calcWeight_<T, WT>::f(dist, h, fixed_point_mult); dist 257 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp static inline WT f(double dist, const float *h, WT fixed_point_mult) dist 259 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp double w = std::exp(-dist / (h[0]*h[0] * pixelInfo<T>::channels)); dist 272 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp static inline Vec<ET, n> f(double dist, const float *h, ET fixed_point_mult) dist 276 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp res[i] = calcWeight<T, ET>(dist, &h[i], fixed_point_mult); dist 302 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp static inline WT calcWeight(double dist, const float *h, dist 305 modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp return calcWeight_<T, WT>::f(dist, h, fixed_point_mult); dist 149 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp double dist = almost_dist * almost_dist2actual_dist_multiplier; dist 151 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp D::template calcWeight<T, WT>(dist, h, fixed_point_mult_); dist 305 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp int dist = D::template calcDist<T>( dist 309 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp *dist_sums_ptr += dist; dist 310 modules/photo/src/fast_nlmeans_multi_denoising_invoker.hpp *col_dist_sums_ptr += dist; dist 241 modules/photo/src/inpaint.cpp float dist; dist 257 modules/photo/src/inpaint.cpp dist = min4(FastMarching_solve(i-1,j,i,j-1,f,t), dist 261 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*t,float,i,j) = dist; dist 263 modules/photo/src/inpaint.cpp Heap->Push(i,j,dist); dist 284 modules/photo/src/inpaint.cpp float dist; dist 299 modules/photo/src/inpaint.cpp dist = min4(FastMarching_solve(i-1,j,i,j-1,f,t), dist 303 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*t,float,i,j) = dist; dist 393 modules/photo/src/inpaint.cpp Heap->Push(i,j,dist); dist 411 modules/photo/src/inpaint.cpp dist = min4(FastMarching_solve(i-1,j,i,j-1,f,t), dist 415 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*t,float,i,j) = dist; dist 505 modules/photo/src/inpaint.cpp Heap->Push(i,j,dist); dist 516 modules/photo/src/inpaint.cpp float dist; dist 531 modules/photo/src/inpaint.cpp dist = min4(FastMarching_solve(i-1,j,i,j-1,f,t), dist 535 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*t,float,i,j) = dist; dist 601 modules/photo/src/inpaint.cpp Heap->Push(i,j,dist); dist 619 modules/photo/src/inpaint.cpp dist = min4(FastMarching_solve(i-1,j,i,j-1,f,t), dist 623 modules/photo/src/inpaint.cpp CV_MAT_ELEM(*t,float,i,j) = dist; dist 689 modules/photo/src/inpaint.cpp Heap->Push(i,j,dist); dist 31 modules/photo/src/opencl/nlmeans.cl FT dist = almostDist * almostDist2ActualDistMultiplier; dist 33 modules/photo/src/opencl/nlmeans.cl w_t w = exp((w_t)(-dist*dist) * den); dist 35 modules/photo/src/opencl/nlmeans.cl w_t w = exp((w_t)(-dist) * den); dist 109 modules/photo/src/opencl/nlmeans.cl int dist = 0, value; dist 128 modules/photo/src/opencl/nlmeans.cl dist += value; dist 139 modules/photo/src/opencl/nlmeans.cl dists[i] = dist; dist 1082 modules/python/src2/cv2.cpp bool pyopencv_to(PyObject *o, cvflann::flann_distance_t& dist, const char *name) dist 1084 modules/python/src2/cv2.cpp int d = (int)dist; dist 1086 modules/python/src2/cv2.cpp dist = (cvflann::flann_distance_t)d; dist 58 modules/stitching/src/matchers.cpp bool operator<(const DistIdxPair &other) const { return dist < other.dist; } dist 59 modules/stitching/src/matchers.cpp double dist; dist 643 modules/stitching/src/seam_finders.cpp double dist = (cx1 - cx2) * (cx1 - cx2) + (cy1 - cy2) * (cy1 - cy2); dist 644 modules/stitching/src/seam_finders.cpp if (dist > maxDist) dist 646 modules/stitching/src/seam_finders.cpp maxDist = dist; dist 668 modules/stitching/src/seam_finders.cpp double dist = (points[idx[i]][j].x - cx) * (points[idx[i]][j].x - cx) + dist 670 modules/stitching/src/seam_finders.cpp if (dist < minDist) dist 672 modules/stitching/src/seam_finders.cpp minDist = dist; dist 444 modules/ts/src/cuda_test.cpp double dist = cv::norm(p1.pt - p2.pt); dist 446 modules/ts/src/cuda_test.cpp if (dist < maxPtDif && dist 88 modules/videostab/include/opencv2/videostab/fast_marching.hpp float dist; dist 91 modules/videostab/include/opencv2/videostab/fast_marching.hpp DXY() : dist(0), x(0), y(0) {} dist 92 modules/videostab/include/opencv2/videostab/fast_marching.hpp DXY(float _dist, int _x, int _y) : dist(_dist), x(_x), y(_y) {} dist 93 modules/videostab/include/opencv2/videostab/fast_marching.hpp bool operator <(const DXY &dxy) const { return dist < dxy.dist; } dist 143 modules/videostab/include/opencv2/videostab/fast_marching_inl.hpp if (dist_(yn,xn) < narrowBand_[i].dist) dist 145 modules/videostab/include/opencv2/videostab/fast_marching_inl.hpp narrowBand_[i].dist = dist_(yn,xn); dist 38 samples/cpp/distrans.cpp Mat edge = gray >= edgeThresh, dist, labels, dist8u; dist 41 samples/cpp/distrans.cpp distanceTransform( edge, dist, distType, maskSize ); dist 43 samples/cpp/distrans.cpp distanceTransform( edge, dist, labels, distType, maskSize, voronoiType ); dist 48 samples/cpp/distrans.cpp dist *= 5000; dist 49 samples/cpp/distrans.cpp pow(dist, 0.5, dist); dist 53 samples/cpp/distrans.cpp dist.convertTo(dist32s, CV_32S, 1, 0.5); dist 71 samples/cpp/distrans.cpp const float* dd = (const float*)dist.ptr(i); dist 83 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp Mat dist; dist 84 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp distanceTransform(bw, dist, CV_DIST_L2, 3); dist 88 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp normalize(dist, dist, 0, 1., NORM_MINMAX); dist 89 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp imshow("Distance Transform Image", dist); dist 95 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp threshold(dist, dist, .4, 1., CV_THRESH_BINARY); dist 99 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp dilate(dist, dist, kernel1); dist 100 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp imshow("Peaks", dist); dist 107 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp dist.convertTo(dist_8u, CV_8U); dist 114 samples/cpp/tutorial_code/ImgTrans/imageSegmentation.cpp Mat markers = Mat::zeros(dist.size(), CV_32SC1); dist 53 samples/cpp/tutorial_code/features2D/AKAZE_match.cpp double dist = sqrt( pow(col.at<double>(0) - matched2[i].pt.x, 2) + dist 56 samples/cpp/tutorial_code/features2D/AKAZE_match.cpp if(dist < inlier_threshold) { dist 71 samples/cpp/tutorial_code/xfeatures2D/LATCH_match.cpp double dist = sqrt(pow(col.at<double>(0) - matched2[i].pt.x, 2) + dist 74 samples/cpp/tutorial_code/xfeatures2D/LATCH_match.cpp if (dist < inlier_threshold) {