Home
last modified time | relevance | path

Searched refs:queryIdx (Results 1 – 25 of 118) sorted by relevance

12345

/dports/graphics/opencv/opencv-4.5.3/modules/core/misc/objc/common/
H A DDMatch.mm13 - (int)queryIdx { method
14 return native.queryIdx;
17 - (void)setQueryIdx:(int)queryIdx {
18 native.queryIdx = queryIdx;
53 - (instancetype)initWithQueryIdx:(int)queryIdx trainIdx:(int)trainIdx distance:(float)distance {
54 return [self initWithQueryIdx:queryIdx trainIdx:trainIdx imgIdx:-1 distance:distance];
57 - (instancetype)initWithQueryIdx:(int)queryIdx trainIdx:(int)trainIdx imgIdx:(int)imgIdx distance:(…
60 self.queryIdx = queryIdx;
88 …return self.queryIdx == dMatch.queryIdx && self.trainIdx == dMatch.trainIdx && self.imgIdx == dMat…
97 result = prime * result + self.queryIdx;
[all …]
H A DDMatch.h28 @property int queryIdx;
49 - (instancetype)initWithQueryIdx:(int)queryIdx trainIdx:(int)trainIdx distance:(float)distance;
50 - (instancetype)initWithQueryIdx:(int)queryIdx trainIdx:(int)trainIdx imgIdx:(int)imgIdx distance:(…
/dports/graphics/opencv/opencv-4.5.3/modules/core/misc/objc/test/
H A DDMatchTest.swift13 let dm1 = DMatch(queryIdx: 1, trainIdx: 4, distance: 4.0) in testDMatchIntIntFloat()
15 XCTAssertEqual(1, dm1.queryIdx) in testDMatchIntIntFloat()
21 let dm2 = DMatch(queryIdx: 2, trainIdx: 6, imgIdx: -1, distance: 8.0) in testDMatchIntIntIntFloat()
23 XCTAssertEqual(2, dm2.queryIdx) in testDMatchIntIntIntFloat()
30 let dm1 = DMatch(queryIdx: 1, trainIdx: 4, distance: 4.0) in testLessThan()
31 let dm2 = DMatch(queryIdx: 2, trainIdx: 6, imgIdx: -1, distance: 8.0) in testLessThan()
36 let dm2 = DMatch(queryIdx: 2, trainIdx: 6, imgIdx: -1, distance: 8.0) in testToString()
H A DConvertersTest.swift97 …t dmatchesIn = [DMatch(queryIdx: 2, trainIdx: 4, distance: 0.7), DMatch(queryIdx: 3, trainIdx: 7, … in testDMatchToMat()
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/cudafeatures2d/src/cuda/
H A Dbf_match.cu129 …if (queryIdx < query.rows && trainIdx < train.rows && distVal < bestDistance && mask(queryIdx, tra… in loopUnrolledCached()
164 bestTrainIdx[queryIdx] = myBestTrainIdx; in matchUnrolledCached()
165 bestDistance[queryIdx] = myBestDistance; in matchUnrolledCached()
222 bestTrainIdx[queryIdx] = myBestTrainIdx; in matchUnrolledCached()
223 bestImgIdx[queryIdx] = myBestImgIdx; in matchUnrolledCached()
224 bestDistance[queryIdx] = myBestDistance; in matchUnrolledCached()
289 …if (queryIdx < query.rows && trainIdx < train.rows && distVal < bestDistance && mask(queryIdx, tra… in loopUnrolled()
322 bestTrainIdx[queryIdx] = myBestTrainIdx; in matchUnrolled()
379 bestImgIdx[queryIdx] = myBestImgIdx; in matchUnrolled()
444 …if (queryIdx < query.rows && trainIdx < train.rows && distVal < bestDistance && mask(queryIdx, tra… in loop()
[all …]
H A Dbf_knnmatch.cu354 if (queryIdx < query.rows && trainIdx < train.rows && mask(queryIdx, trainIdx)) in loopUnrolledCached()
402 if (queryIdx < query.rows && threadIdx.x == 0) in matchUnrolledCached()
462 if (queryIdx < query.rows && threadIdx.x == 0) in matchUnrolledCached()
533 if (queryIdx < query.rows && trainIdx < train.rows && mask(queryIdx, trainIdx)) in loopUnrolled()
707 if (queryIdx < query.rows && trainIdx < train.rows && mask(queryIdx, trainIdx)) in loop()
946 if (mask(queryIdx, trainIdx)) in calcDistanceUnrolled()
1009 if (mask(queryIdx, trainIdx)) in calcDistance()
1075 const int queryIdx = blockIdx.x; in findBestMatch() local
1077 float* allDistRow = allDist.ptr(queryIdx); in findBestMatch()
1103 trainIdx.ptr(queryIdx)[i] = bestIdx; in findBestMatch() local
[all …]
H A Dbf_radius_match.cu64 const int queryIdx = blockIdx.y * BLOCK_SIZE + threadIdx.y; in matchUnrolled() local
102 …if (queryIdx < query.rows && trainIdx < train.rows && mask(queryIdx, trainIdx) && distVal < maxDis… in matchUnrolled()
104 unsigned int ind = atomicInc(nMatches + queryIdx, (unsigned int) -1); in matchUnrolled()
107 bestTrainIdx.ptr(queryIdx)[ind] = trainIdx; in matchUnrolled() local
108 if (SAVE_IMG_IDX) bestImgIdx.ptr(queryIdx)[ind] = imgIdx; in matchUnrolled() local
109 bestDistance.ptr(queryIdx)[ind] = distVal; in matchUnrolled() local
172 const int queryIdx = blockIdx.y * BLOCK_SIZE + threadIdx.y; in match() local
209 …if (queryIdx < query.rows && trainIdx < train.rows && mask(queryIdx, trainIdx) && distVal < maxDis… in match()
214 bestTrainIdx.ptr(queryIdx)[ind] = trainIdx; in match() local
215 if (SAVE_IMG_IDX) bestImgIdx.ptr(queryIdx)[ind] = imgIdx; in match() local
[all …]
/dports/graphics/opencv/opencv-4.5.3/modules/core/misc/java/src/java/
H A Dcore+DMatch.java14 public int queryIdx; field in DMatch
34 queryIdx = _queryIdx; in DMatch()
42 queryIdx = _queryIdx; in DMatch()
54 return "DMatch [queryIdx=" + queryIdx + ", trainIdx=" + trainIdx in toString()
/dports/graphics/opencv/opencv-4.5.3/modules/features2d/src/opencl/
H A Dbrute_force_match.cl194 const int queryIdx = mad24(BLOCK_SIZE, groupidx, lidy);
269 …if (queryIdx < query_rows && trainIdx < train_rows && result < myBestDistance /*&& mask(queryIdx, …
300 if (queryIdx < query_rows && lidx == 0)
302 bestTrainIdx[queryIdx] = myBestTrainIdx;
303 bestDistance[queryIdx] = myBestDistance;
329 const int queryIdx = mad24(BLOCK_SIZE, groupidy, lidy);
371 int ind = atom_inc(nMatches + queryIdx);
376 bestDistance[mad24(queryIdx, ostep, ind)] = result;
397 const int queryIdx = mad24(BLOCK_SIZE, groupidx, lidy);
473 if (queryIdx < query_rows && trainIdx < train_rows)
[all …]
/dports/graphics/opencv/opencv-4.5.3/modules/features2d/test/
H A Dtest_matchers_algorithmic.cpp215 … if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor) || (match.imgIdx != 0) ) in matchTest()
244 …if( match.queryIdx != (int)i || match.trainIdx != (int)i || std::abs(match.distance) > FLT_EPSILON… in matchTest()
247 i, match.queryIdx, match.trainIdx, match.distance ); in matchTest()
286 …if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor + shift) || (match.imgIdx … in matchTest()
335 …if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor+k) || (match.imgIdx != 0) ) in knnMatchTest()
390 … if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor + k + shift) || in knnMatchTest()
396 …if( (match.queryIdx != (int)i) || (match.trainIdx != ((int)i-queryDescCount/2)*countFactor + k + s… in knnMatchTest()
439 … if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor) || (match.imgIdx != 0) ) in radiusMatchTest()
494 … if( (match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor + k + shift) || in radiusMatchTest()
500 …if( (match.queryIdx != (int)i) || (match.trainIdx != ((int)i-queryDescCount/2)*countFactor + k + s… in radiusMatchTest()
[all …]
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/line_descriptor/test/
H A Dtest_matcher_regression.cpp260 …if( ( match.queryIdx != (int) i ) || ( match.trainIdx != (int) i * countFactor ) || ( match.imgIdx… in matchTest()
287 …if( match.queryIdx != (int) i || match.trainIdx != (int) i || std::abs( match.distance ) > FLT_EPS… in matchTest()
292 match.queryIdx, match.trainIdx, match.distance ); in matchTest()
327 …if( ( match.queryIdx != (int) i ) || ( match.trainIdx != (int) i * countFactor /*+ shift*/) || ( m… in matchTest()
372 …if( ( match.queryIdx != (int) i ) || ( match.trainIdx != (int) i * countFactor + k ) || ( match.im… in knnMatchTest()
430 …if( ( match.queryIdx != (int) i ) || ( match.trainIdx != (int) i * countFactor + k ) || ( match.im… in knnMatchTest()
436 …if( ( match.queryIdx != (int) i ) || ( match.trainIdx != (int) i * countFactor + k ) || ( match.im… in knnMatchTest()
484 …if( ( match.queryIdx != (int) i ) || ( match.trainIdx != (int) i * countFactor ) || ( match.imgIdx… in radiusMatchTest()
534 …if( ( match.queryIdx != (int) i ) || ( match.trainIdx != (int) i * countFactor + k ) || ( match.im… in radiusMatchTest()
540 …if( ( match.queryIdx != (int) i ) || ( match.trainIdx != (int) i * countFactor + k ) || ( match.im… in radiusMatchTest()
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/cudafeatures2d/src/
H A Dbrute_force_matcher.cpp482 for (int queryIdx = 0; queryIdx < nQuery; ++queryIdx) in matchConvert() local
484 const int trainIdx = trainIdxPtr[queryIdx]; in matchConvert()
488 const int imgIdx = imgIdxPtr ? imgIdxPtr[queryIdx] : 0; in matchConvert()
489 const float distance = distancePtr[queryIdx]; in matchConvert()
491 DMatch m(queryIdx, trainIdx, imgIdx, distance); in matchConvert()
548 for (int queryIdx = 0; queryIdx < query.rows; ++queryIdx) in knnMatch() local
551 std::vector<DMatch>& globalMatch = matches[queryIdx]; in knnMatch()
785 for (int queryIdx = 0; queryIdx < nQuery; ++queryIdx) in knnMatchConvert() local
800 DMatch m(queryIdx, trainIdx, imgIdx, distance); in knnMatchConvert()
1034 for (int queryIdx = 0; queryIdx < nQuery; ++queryIdx) in radiusMatchConvert() local
[all …]
/dports/science/InsightToolkit/ITK-5.0.1/Modules/Numerics/Statistics/test/
H A DitkSpatialNeighborSubsamplerTest.cxx140 IndexType queryIdx; in itkSpatialNeighborSubsamplerTest() local
141 queryIdx[0] = 2; in itkSpatialNeighborSubsamplerTest()
142 queryIdx[1] = 6; in itkSpatialNeighborSubsamplerTest()
143 ImageType::OffsetValueType queryOffset = inImage->ComputeOffset(queryIdx); in itkSpatialNeighborSubsamplerTest()
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/cvv/src/qtutil/matchview/
H A Dcvvmatch.cpp27 .arg(queryIdx)
59 return o.queryIdx == queryIdx && o.trainIdx == trainIdx && in operator ==()
/dports/graphics/opencv/opencv-4.5.3/modules/features2d/src/
H A Dbagofwords.cpp203 int queryIdx = matches[i].queryIdx; in compute() local
205 CV_Assert( queryIdx == (int)i ); in compute()
209 (*pointIdxsOfClusters)[trainIdx].push_back( queryIdx ); in compute()
H A Dmatchers.cpp145 for (int queryIdx = 0; queryIdx < nQuery; ++queryIdx, ++trainIdx_ptr, ++distance_ptr) in ocl_matchConvert() local
154 DMatch m(queryIdx, trainIndex, 0, dst); in ocl_matchConvert()
249 for (int queryIdx = 0; queryIdx < nQuery; ++queryIdx) in ocl_knnMatchConvert() local
263 DMatch m(queryIdx, trainIndex, 0, dst); in ocl_knnMatchConvert()
361 for (int queryIdx = 0; queryIdx < nQuery; ++queryIdx) in ocl_radiusMatchConvert() local
363 const int *trainIdx_ptr = trainIdx.ptr<int>(queryIdx); in ocl_radiusMatchConvert()
364 const float *distance_ptr = distance.ptr<float>(queryIdx); in ocl_radiusMatchConvert()
366 const int nMatches = std::min(nMatches_ptr[queryIdx], trainIdx.cols); in ocl_radiusMatchConvert()
384 DMatch m(queryIdx, trainIndex, 0, dst); in ocl_radiusMatchConvert()
689 return mask.empty() || mask.at<uchar>(queryIdx, trainIdx); in isPossibleMatch()
[all …]
/dports/graphics/opencv/opencv-4.5.3/modules/stitching/src/
H A Dmatchers.cpp98 std::swap(pairwise_matches[dual_pair_idx].matches[j].queryIdx, in operator ()()
192 matches.insert(std::make_pair(m0.queryIdx, m0.trainIdx)); in match()
207 if (matches.find(std::make_pair(m0.trainIdx, m0.queryIdx)) == matches.end()) in match()
208 matches_info.matches.push_back(DMatch(m0.trainIdx, m0.queryIdx, m0.distance)); in match()
246 matches.insert(std::make_pair(m0.queryIdx, m0.trainIdx)); in match()
260 if (matches.find(std::make_pair(m0.trainIdx, m0.queryIdx)) == matches.end()) in match()
261 matches_info.matches.push_back(DMatch(m0.trainIdx, m0.queryIdx, m0.distance)); in match()
413 Point2f p = features1.keypoints[m.queryIdx].pt; in match()
458 Point2f p = features1.keypoints[m.queryIdx].pt; in match()
529 src_points.at<Point2f>(0, static_cast<int>(i)) = features1.keypoints[m.queryIdx].pt; in match()
/dports/graphics/opencv/opencv-4.5.3/modules/core/misc/java/test/
H A DDMatchTest.java15 assertEquals(1, dm1.queryIdx); in testDMatchIntIntFloat()
23 assertEquals(2, dm2.queryIdx); in testDMatchIntIntIntFloat()
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/cudafeatures2d/test/
H A Dtest_features2d.cpp355 … if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor) || (match.imgIdx != 0)) in CUDA_TEST_P()
398 bool validQueryIdx = (match.queryIdx == (int)i); in CUDA_TEST_P()
406 bool validQueryIdx = (match.queryIdx == (int)i); in CUDA_TEST_P()
447 …if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k) || (match.imgIdx !=… in CUDA_TEST_P()
487 …if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k) || (match.imgIdx !=… in CUDA_TEST_P()
543 …if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k + shift) || (match.i… in CUDA_TEST_P()
548 …if ((match.queryIdx != (int)i) || (match.trainIdx != ((int)i - queryDescCount / 2) * countFactor +… in CUDA_TEST_P()
606 …if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor + k + shift) || (match.i… in CUDA_TEST_P()
611 …if ((match.queryIdx != (int)i) || (match.trainIdx != ((int)i - queryDescCount / 2) * countFactor +… in CUDA_TEST_P()
664 … if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i*countFactor) || (match.imgIdx != 0)) in CUDA_TEST_P()
[all …]
/dports/graphics/opencv/opencv-4.5.3/modules/features2d/test/ocl/
H A 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()
/dports/graphics/opencv/opencv-4.5.3/samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/
H A DRobustMatcher.cpp75 if ((*matchIterator1)[0].queryIdx == (*matchIterator2)[0].trainIdx && in symmetryTest()
76 (*matchIterator2)[0].queryIdx == (*matchIterator1)[0].trainIdx) in symmetryTest()
79 symMatches.push_back(cv::DMatch((*matchIterator1)[0].queryIdx, in symmetryTest()
/dports/science/rdkit/rdkit-Release_2021_03_5/Code/GraphMol/MolChemicalFeatures/
H A DMolChemicalFeatureFactory.cpp82 int queryIdx = matchIt.first; in getFeaturesForMol() local
83 atoms[queryIdx] = mol.getAtomWithIdx(atomIdx); in getFeaturesForMol()
/dports/misc/visp/visp-3.4.0/modules/vision/test/key-point/
H A DtestKeyPoint-4.cpp305 vpPixelMeterConversion::convertPoint(cam, queryKeyPoints[(size_t)(it->queryIdx)].pt.x, in run_test()
306 queryKeyPoints[(size_t)(it->queryIdx)].pt.y, x, y); in run_test()
334 vpImagePoint rightPt(queryKeyPoints[(size_t)it->queryIdx].pt.y, in run_test()
335 queryKeyPoints[(size_t)it->queryIdx].pt.x + Iref.getWidth()); in run_test()
/dports/games/0ad/0ad-0.0.23b-alpha/source/ps/
H A DProfiler2GPU.cpp586 GLuint NewQuery(size_t queryIdx) in NewQuery() argument
588 ENSURE(queryIdx < m_QueryTypes.size()); in NewQuery()
590 if (m_QueryTypes[queryIdx].freeQueries.empty()) in NewQuery()
593 pglCreatePerfQueryINTEL(m_QueryTypes[queryIdx].queryTypeId, &id); in NewQuery()
598 GLuint id = m_QueryTypes[queryIdx].freeQueries.back(); in NewQuery()
599 m_QueryTypes[queryIdx].freeQueries.pop_back(); in NewQuery()
/dports/graphics/opencv/opencv-4.5.3/samples/python/tutorial_code/features2D/feature_homography/
H A DSURF_FLANN_matching_homography_Demo.py44 obj[i,0] = keypoints_obj[good_matches[i].queryIdx].pt[0]
45 obj[i,1] = keypoints_obj[good_matches[i].queryIdx].pt[1]

12345