Home
last modified time | relevance | path

Searched refs:trainIdx (Results 1 – 25 of 48) sorted by relevance

12

/external/opencv3/modules/cudafeatures2d/src/cuda/
Dbf_radius_match.cu65 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 …]
Dbf_match.cu127 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 …]
Dbf_knnmatch.cu352 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/
Dmatchers.cpp64 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 …]
Dbagofwords.cpp199 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()
Ddraw.cpp208 int i2 = matches1to2[m].trainIdx; in drawMatches()
237 int i2 = matches1to2[i][j].trainIdx; in drawMatches()
/external/opencv3/modules/cudafeatures2d/src/
Dbrute_force_matcher.cpp59 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/
Dcore+DMatch.java18 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()
Dcore+MatOfDMatch.java55 buff[_channels*i+1] = m.trainIdx; in fromArray()
/external/opencv3/modules/features2d/test/
Dtest_matchers_algorithmic.cpp213 … 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 …]
Dtest_rotation_and_scale_invariance.cpp247 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/
Dtest_features2d.cpp307 … 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/
DDMatchTest.java16 assertEquals(4, dm1.trainIdx); in testDMatchIntIntFloat()
24 assertEquals(6, dm2.trainIdx); in testDMatchIntIntIntFloat()
/external/opencv3/modules/features2d/src/opencl/
Dbrute_force_match.cl220 // 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/
DRobustMatcher.cpp78 (*matchIterator2)[0].trainIdx && in symmetryTest()
80 (*matchIterator1)[0].trainIdx) in symmetryTest()
85 (*matchIterator1)[0].trainIdx, in symmetryTest()
/external/opencv3/modules/features2d/test/ocl/
Dtest_brute_force_matcher.cpp131 … 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/
Dmatchers.cpp95 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/
Dmatchmethod_orb_akaze_brisk.cpp145 … 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/
Daff_trans.cpp200 _matches[i].trainIdx<pts2.cols) in estimateTransformation()
214 Point2f pt2=pts2.at<Point2f>(0,matches[i].trainIdx); in estimateTransformation()
Dtps_trans.cpp206 _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/
DAKAZE_match.cpp42 matched2.push_back(kpts2[first.trainIdx]); in main()
/external/opencv3/samples/cpp/tutorial_code/xfeatures2D/
DLATCH_match.cpp60 matched2.push_back(kpts2[first.trainIdx]); in main()
/external/opencv3/modules/features2d/misc/java/src/cpp/
Dfeatures2d_converters.cpp58 …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/
DFeatures2dTest.java128 lp1.add(tkp[dm.trainIdx].pt); in testPTOD()
/external/opencv3/samples/python2/
Dplane_tracker.py105 p0 = [target.keypoints[m.trainIdx].pt for m in matches]

12