/external/opencv3/modules/cudafeatures2d/src/cuda/ |
D | bf_radius_match.cu | 65 const int trainIdx = blockIdx.x * BLOCK_SIZE + threadIdx.x; in matchUnrolled() local 102 …if (queryIdx < query.rows && trainIdx < train.rows && mask(queryIdx, trainIdx) && distVal < maxDis… in matchUnrolled() 107 bestTrainIdx.ptr(queryIdx)[ind] = trainIdx; in matchUnrolled() 116 …const PtrStepSzi& trainIdx, const PtrStepSzf& distance, const PtrStepSz<unsigned int>& nMatches, c… in matchUnrolled() argument 124 trainIdx, PtrStepi(), distance, nMatches.data, trainIdx.cols); in matchUnrolled() 133 …const PtrStepSzi& trainIdx, const PtrStepSzi& imgIdx, const PtrStepSzf& distance, const PtrStepSz<… in matchUnrolled() argument 149 trainIdx, imgIdx, distance, nMatches.data, trainIdx.cols); in matchUnrolled() 154 trainIdx, imgIdx, distance, nMatches.data, trainIdx.cols); in matchUnrolled() 173 const int trainIdx = blockIdx.x * BLOCK_SIZE + threadIdx.x; in match() local 209 …if (queryIdx < query.rows && trainIdx < train.rows && mask(queryIdx, trainIdx) && distVal < maxDis… in match() [all …]
|
D | bf_match.cu | 127 const int trainIdx = t * BLOCK_SIZE + threadIdx.x; in loopUnrolledCached() local 129 …if (queryIdx < query.rows && trainIdx < train.rows && distVal < bestDistance && mask(queryIdx, tra… in loopUnrolledCached() 133 bestTrainIdx = trainIdx; in loopUnrolledCached() 171 const PtrStepSzi& trainIdx, const PtrStepSzf& distance, in matchUnrolledCached() argument 179 …_DESC_LEN, Dist><<<grid, block, smemSize, stream>>>(query, train, mask, trainIdx.data, distance.da… in matchUnrolledCached() 230 … const PtrStepSzi& trainIdx, const PtrStepSzi& imgIdx, const PtrStepSzf& distance, in matchUnrolledCached() argument 238 …C_LEN, Dist><<<grid, block, smemSize, stream>>>(query, trains, n, mask, trainIdx.data, imgIdx.data… in matchUnrolledCached() 287 const int trainIdx = t * BLOCK_SIZE + threadIdx.x; in loopUnrolled() local 289 …if (queryIdx < query.rows && trainIdx < train.rows && distVal < bestDistance && mask(queryIdx, tra… in loopUnrolled() 293 bestTrainIdx = trainIdx; in loopUnrolled() [all …]
|
D | bf_knnmatch.cu | 352 const int trainIdx = t * BLOCK_SIZE + threadIdx.x; in loopUnrolledCached() local 354 if (queryIdx < query.rows && trainIdx < train.rows && mask(queryIdx, trainIdx)) in loopUnrolledCached() 364 bestTrainIdx1 = trainIdx; in loopUnrolledCached() 370 bestTrainIdx2 = trainIdx; in loopUnrolledCached() 411 const PtrStepSz<int2>& trainIdx, const PtrStepSz<float2>& distance, in matchUnrolledCached() argument 419 …_DESC_LEN, Dist><<<grid, block, smemSize, stream>>>(query, train, mask, trainIdx.data, distance.da… in matchUnrolledCached() 472 … const PtrStepSz<int2>& trainIdx, const PtrStepSz<int2>& imgIdx, const PtrStepSz<float2>& distance, in matchUnrolledCached() argument 480 …C_LEN, Dist><<<grid, block, smemSize, stream>>>(query, trains, n, mask, trainIdx.data, imgIdx.data… in matchUnrolledCached() 531 const int trainIdx = t * BLOCK_SIZE + threadIdx.x; in loopUnrolled() local 533 if (queryIdx < query.rows && trainIdx < train.rows && mask(queryIdx, trainIdx)) in loopUnrolled() [all …]
|
/external/opencv3/modules/features2d/src/ |
D | matchers.cpp | 64 UMat &trainIdx, UMat &distance, int distType) in ocl_matchSingle() argument 72 ensureSizeIsEnough(1, query_rows, CV_32S, trainIdx); in ocl_matchSingle() 106 idx = k.set(idx, ocl::KernelArg::PtrWriteOnly(trainIdx)); in ocl_matchSingle() 117 static bool ocl_matchConvert(const Mat &trainIdx, const Mat &distance, std::vector< std::vector<DMa… in ocl_matchConvert() argument 119 if (trainIdx.empty() || distance.empty()) in ocl_matchConvert() 122 …if( (trainIdx.type() != CV_32SC1) || (distance.type() != CV_32FC1 || distance.cols != trainIdx.col… in ocl_matchConvert() 125 const int nQuery = trainIdx.cols; in ocl_matchConvert() 130 const int *trainIdx_ptr = trainIdx.ptr<int>(); in ocl_matchConvert() 150 static bool ocl_matchDownload(const UMat &trainIdx, const UMat &distance, std::vector< std::vector<… in ocl_matchDownload() argument 152 if (trainIdx.empty() || distance.empty()) in ocl_matchDownload() [all …]
|
D | bagofwords.cpp | 199 int trainIdx = matches[i].trainIdx; // cluster index in compute() local 202 dptr[trainIdx] = dptr[trainIdx] + 1.f; in compute() 204 (*pointIdxsOfClusters)[trainIdx].push_back( queryIdx ); in compute()
|
D | draw.cpp | 208 int i2 = matches1to2[m].trainIdx; in drawMatches() 237 int i2 = matches1to2[i][j].trainIdx; in drawMatches()
|
/external/opencv3/modules/cudafeatures2d/src/ |
D | brute_force_matcher.cpp | 59 const PtrStepSzi& trainIdx, const PtrStepSzf& distance, 62 const PtrStepSzi& trainIdx, const PtrStepSzf& distance, 65 const PtrStepSzi& trainIdx, const PtrStepSzf& distance, 69 const PtrStepSzi& trainIdx, const PtrStepSzi& imgIdx, const PtrStepSzf& distance, 72 const PtrStepSzi& trainIdx, const PtrStepSzi& imgIdx, const PtrStepSzf& distance, 75 const PtrStepSzi& trainIdx, const PtrStepSzi& imgIdx, const PtrStepSzf& distance, 82 const PtrStepSzb& trainIdx, const PtrStepSzb& distance, const PtrStepSzf& allDist, 85 const PtrStepSzb& trainIdx, const PtrStepSzb& distance, const PtrStepSzf& allDist, 88 const PtrStepSzb& trainIdx, const PtrStepSzb& distance, const PtrStepSzf& allDist, 92 const PtrStepSzb& trainIdx, const PtrStepSzb& imgIdx, const PtrStepSzb& distance, [all …]
|
/external/opencv3/modules/core/misc/java/src/java/ |
D | core+DMatch.java | 18 public int trainIdx; field in DMatch 35 trainIdx = _trainIdx; in DMatch() 43 trainIdx = _trainIdx; in DMatch() 57 return "DMatch [queryIdx=" + queryIdx + ", trainIdx=" + trainIdx in toString()
|
D | core+MatOfDMatch.java | 55 buff[_channels*i+1] = m.trainIdx; in fromArray()
|
/external/opencv3/modules/features2d/test/ |
D | test_matchers_algorithmic.cpp | 213 … if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor) || (match.imgIdx != 0) ) in matchTest() 242 …if( match.queryIdx != (int)i || match.trainIdx != (int)i || std::abs(match.distance) > FLT_EPSILON… in matchTest() 245 i, match.queryIdx, match.trainIdx, match.distance ); in matchTest() 284 …if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor + shift) || (match.imgIdx … in matchTest() 289 …if( (match.queryIdx != (int)i) || (match.trainIdx != ((int)i-queryDescCount/2)*countFactor + shift… in matchTest() 333 …if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor+k) || (match.imgIdx != 0) ) in knnMatchTest() 388 … if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor + k + shift) || in knnMatchTest() 394 …if( (match.queryIdx != (int)i) || (match.trainIdx != ((int)i-queryDescCount/2)*countFactor + k + s… in knnMatchTest() 437 … if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor) || (match.imgIdx != 0) ) in radiusMatchTest() 492 … if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor + k + shift) || in radiusMatchTest() [all …]
|
D | test_rotation_and_scale_invariance.cpp | 247 float angle1 = keypoints1[matches[m].trainIdx].angle; in run() 356 const KeyPoint& p1 = keypoints1[descMatches[m].trainIdx]; in run() 461 float size0 = keypoints0[matches[m].trainIdx].size; in run() 560 const KeyPoint& p1 = keypoints0[descMatches[m].trainIdx]; in run()
|
/external/opencv3/modules/cudafeatures2d/test/ |
D | test_features2d.cpp | 307 … if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor) || (match.imgIdx != 0)) in CUDA_TEST_P() 351 bool validTrainIdx = (match.trainIdx == (int)i * countFactor + shift); in CUDA_TEST_P() 359 … bool validTrainIdx = (match.trainIdx == ((int)i - queryDescCount / 2) * countFactor + shift); in CUDA_TEST_P() 399 …if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k) || (match.imgIdx !=… in CUDA_TEST_P() 439 …if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k) || (match.imgIdx !=… in CUDA_TEST_P() 495 …if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k + shift) || (match.i… in CUDA_TEST_P() 500 …if ((match.queryIdx != (int)i) || (match.trainIdx != ((int)i - queryDescCount / 2) * countFactor +… in CUDA_TEST_P() 558 …if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k + shift) || (match.i… in CUDA_TEST_P() 563 …if ((match.queryIdx != (int)i) || (match.trainIdx != ((int)i - queryDescCount / 2) * countFactor +… in CUDA_TEST_P() 616 … if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor) || (match.imgIdx != 0)) in CUDA_TEST_P() [all …]
|
/external/opencv3/modules/core/misc/java/test/ |
D | DMatchTest.java | 16 assertEquals(4, dm1.trainIdx); in testDMatchIntIntFloat() 24 assertEquals(6, dm2.trainIdx); in testDMatchIntIntIntFloat()
|
/external/opencv3/modules/features2d/src/opencl/ |
D | brute_force_match.cl | 220 // loopUnrolledCached to find the best trainIdx and best distance. 267 const int trainIdx = mad24(BLOCK_SIZE, t, lidx); 269 …if (queryIdx < query_rows && trainIdx < train_rows && result < myBestDistance /*&& mask(queryIdx, … 272 myBestTrainIdx = trainIdx; 333 const int trainIdx = mad24(BLOCK_SIZE, groupidx, lidx); 369 if (queryIdx < query_rows && trainIdx < train_rows && convert_float(result) < maxDistance) 375 bestTrainIdx[mad24(queryIdx, ostep, ind)] = trainIdx; 471 const int trainIdx = mad24(BLOCK_SIZE, t, lidx); 473 if (queryIdx < query_rows && trainIdx < train_rows) 480 myBestTrainIdx1 = trainIdx; [all …]
|
/external/opencv3/samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/ |
D | RobustMatcher.cpp | 78 (*matchIterator2)[0].trainIdx && in symmetryTest() 80 (*matchIterator1)[0].trainIdx) in symmetryTest() 85 (*matchIterator1)[0].trainIdx, in symmetryTest()
|
/external/opencv3/modules/features2d/test/ocl/ |
D | test_brute_force_matcher.cpp | 131 … if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor) || (match.imgIdx != 0)) in OCL_TEST_P() 164 …if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k) || (match.imgIdx !=… in OCL_TEST_P() 199 … if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor) || (match.imgIdx != 0)) in OCL_TEST_P()
|
/external/opencv3/modules/stitching/src/ |
D | matchers.cpp | 95 pairwise_matches[dual_pair_idx].matches[j].trainIdx); in operator ()() 191 matches.insert(std::make_pair(m0.queryIdx, m0.trainIdx)); in match() 206 if (matches.find(std::make_pair(m0.trainIdx, m0.queryIdx)) == matches.end()) in match() 207 matches_info.matches.push_back(DMatch(m0.trainIdx, m0.queryIdx, m0.distance)); in match() 239 matches.insert(std::make_pair(m0.queryIdx, m0.trainIdx)); in match() 253 if (matches.find(std::make_pair(m0.trainIdx, m0.queryIdx)) == matches.end()) in match() 254 matches_info.matches.push_back(DMatch(m0.trainIdx, m0.queryIdx, m0.distance)); in match() 598 p = features2.keypoints[m.trainIdx].pt; in match() 643 p = features2.keypoints[m.trainIdx].pt; in match()
|
/external/opencv3/samples/cpp/ |
D | matchmethod_orb_akaze_brisk.cpp | 145 … cout << it->queryIdx << "\t" << it->trainIdx << "\t" << it->distance << "\n"; in main() 146 Point2d p=keyImg1[it->queryIdx].pt-keyImg2[it->trainIdx].pt; in main()
|
/external/opencv3/modules/shape/src/ |
D | aff_trans.cpp | 200 _matches[i].trainIdx<pts2.cols) in estimateTransformation() 214 Point2f pt2=pts2.at<Point2f>(0,matches[i].trainIdx); in estimateTransformation()
|
D | tps_trans.cpp | 206 _matches[i].trainIdx<pts2.cols) in estimateTransformation() 221 Point2f pt2=pts2.at<Point2f>(0,matches[i].trainIdx); in estimateTransformation()
|
/external/opencv3/samples/cpp/tutorial_code/features2D/ |
D | AKAZE_match.cpp | 42 matched2.push_back(kpts2[first.trainIdx]); in main()
|
/external/opencv3/samples/cpp/tutorial_code/xfeatures2D/ |
D | LATCH_match.cpp | 60 matched2.push_back(kpts2[first.trainIdx]); in main()
|
/external/opencv3/modules/features2d/misc/java/src/cpp/ |
D | features2d_converters.cpp | 58 …mat.at< Vec<float, 4> >(i, 0) = Vec<float, 4>((float)dm.queryIdx, (float)dm.trainIdx, (float)dm.im… in vector_DMatch_to_Mat()
|
/external/opencv3/modules/features2d/misc/java/test/ |
D | Features2dTest.java | 128 lp1.add(tkp[dm.trainIdx].pt); in testPTOD()
|
/external/opencv3/samples/python2/ |
D | plane_tracker.py | 105 p0 = [target.keypoints[m.trainIdx].pt for m in matches]
|