/dports/misc/visp/visp-3.4.0/modules/core/test/image/ |
H A D | testImageAddSub.cpp | 69 vpImage<unsigned char> Iref; variable 70 common_tools::imageAddRef(I, I, Iref, saturation); 74 CHECK((Iadd == Iref)); 80 vpImage<unsigned char> Iref; variable 81 common_tools::imageAddRef(I, I, Iref, saturation); 85 CHECK((Iadd == Iref)); 106 vpImage<unsigned char> Iref; variable 110 common_tools::imageSubtractRef(I, I2, Iref, saturation); 114 CHECK((Isub == Iref)); 120 vpImage<unsigned char> Iref; variable [all …]
|
/dports/misc/visp/visp-3.4.0/example/key-point/ |
H A D | planarObjectDetector.cpp | 256 vpImage<unsigned char> Iref; in main() local 277 I = Iref; in main() 313 vpDisplay::display(Iref); in main() 314 vpDisplay::flush(Iref); in main() 333 vpDisplay::flush(Iref); in main() 338 vpDisplay::getClick(Iref); in main() 347 vpDisplay::display(Iref); in main() 348 vpDisplay::flush(Iref); in main() 381 vpDisplay::flush(Iref); in main() 382 vpDisplay::getClick(Iref); in main() [all …]
|
H A D | keyPointSurf.cpp | 223 vpImage<unsigned char> Iref; in main() local 245 vpImageIo::read(Iref, filename); in main() 270 display[0].init(Iref, 100, 100, "Display reference image"); in main() 271 vpDisplay::display(Iref); in main() 272 vpDisplay::flush(Iref); in main() 286 vpDisplay::getClick(Iref, corners[i]); in main() 298 vpDisplay::flush(Iref); in main() 303 vpDisplay::getClick(Iref); in main() 339 vpDisplay::display(Iref); in main() 348 surf.display(Iref, Icur, 7); in main() [all …]
|
H A D | fernClassifier.cpp | 251 vpImage<unsigned char> Iref; in main() local 272 I = Iref; in main() 307 vpDisplay::display(Iref); in main() 308 vpDisplay::flush(Iref); in main() 328 vpDisplay::flush(Iref); in main() 333 vpDisplay::getClick(Iref); in main() 342 vpDisplay::display(Iref); in main() 343 vpDisplay::flush(Iref); in main() 405 vpDisplay::display(Iref); in main() 423 fern.display(Iref, I, 7); in main() [all …]
|
/dports/misc/visp/visp-3.4.0/modules/vision/test/key-point/ |
H A D | testSurfKeyPoint.cpp | 217 vpImage<unsigned char> Iref; in main() local 236 vpImageIo::read(Iref, filenameRef); in main() 266 display[0].init(Iref, 100, 100, "Reference image"); in main() 272 vpDisplay::display(Iref); in main() 274 vpDisplay::flush(Iref); in main() 289 vpDisplay::getClick(Iref, corners[i]); in main() 293 vpDisplay::flush(Iref); in main() 303 nbrRef = surf.buildReference(Iref); in main() 350 surf.display(Iref, Icur, 7); in main() 351 vpDisplay::flush(Iref); in main() [all …]
|
H A D | testKeyPoint.cpp | 144 vpImage<Type> &Iref, vpImage<Type> &Icur, vpImage<Type> &Imatch) in run_test() argument 151 vpImageIo::read(Iref, filenameRef); in run_test() 156 std::cout << "Build " << keypoints.buildReference(Iref) << " reference points." << std::endl; in run_test() 164 Imatch.insert(Iref, vpImagePoint(0, 0)); in run_test() 194 keypoints.displayMatching(Iref, Imatch); in run_test() 250 vpImage<unsigned char> Iref, Icur, Imatch; in main() local 253 run_test(env_ipath, opt_click_allowed, opt_display, Iref, Icur, Imatch); in main() 257 vpImage<vpRGBa> Iref, Icur, Imatch; in main() local 260 run_test(env_ipath, opt_click_allowed, opt_display, Iref, Icur, Imatch); in main()
|
H A D | testKeyPoint-3.cpp | 145 vpImage<Type> &Iref, vpImage<Type> &Icur, vpImage<Type> &Imatch) in run_test() argument 152 vpImageIo::read(Iref, filenameRef); in run_test() 171 vpImageConvert::convert(Iref, matImg); in run_test() 181 Imatch.insert(Iref, vpImagePoint(0, 0)); in run_test() 232 queryKeyPoints[(size_t)it->queryIdx].pt.x + Iref.getWidth()); in run_test() 290 vpImage<unsigned char> Iref, Icur, Imatch; in main() local 293 run_test(env_ipath, opt_click_allowed, opt_display, Iref, Icur, Imatch); in main() 297 vpImage<vpRGBa> Iref, Icur, Imatch; in main() local 300 run_test(env_ipath, opt_click_allowed, opt_display, Iref, Icur, Imatch); in main()
|
H A D | testKeyPoint-4.cpp | 149 vpImage<Type> &I, vpImage<Type> &Imatch, vpImage<Type> &Iref) in run_test() argument 157 Iref = I; in run_test() 330 Imatch.insert(I, vpImagePoint(0, Iref.getWidth())); in run_test() 335 queryKeyPoints[(size_t)it->queryIdx].pt.x + Iref.getWidth()); in run_test() 400 vpImage<unsigned char> I, Imatch, Iref; in main() local 404 run_test(env_ipath, opt_click_allowed, opt_display, I, Imatch, Iref); in main() 408 vpImage<vpRGBa> I, Imatch, Iref; in main() local 411 run_test(env_ipath, opt_click_allowed, opt_display, I, Imatch, Iref); in main()
|
/dports/math/faiss/faiss-1.7.1/tests/ |
H A D | test_meta_index.py | 35 _Dref, Iref = index.search(xq, k) 48 assert np.all(I == nb - 1 - Iref) 63 _Dref, Iref = index.search(xq, k) 76 assert np.all(I == nb - 1 - Iref) 88 print(Iref[:5, :6]) 137 ndiff = (I != Iref).sum() 180 print(Iref[:5, :6]) 202 ndiff = (I != Iref).sum() 227 Dref, Iref = index.search(xq, k) 235 if Iref[i, j] % 2 == 0: [all …]
|
H A D | test_fast_scan.py | 33 Dref, Iref = index_gt.search(ds.get_queries(), 10) 40 nq = Iref.shape[0] 41 recall_at_1 = (Iref[:, 0] == Ia[:, 0]).sum() / nq 92 Dref, Iref = index.search(ds.get_queries(), 10) 93 nq = Iref.shape[0] 100 np.testing.assert_array_equal(I2, Iref) 225 for i in range(len(Iref)): 226 if np.all(Iref[i] == Inew[i]): # easy case 269 Iref = Iref[:, :self.k] 271 verify_with_draws(self, Dref, Iref, Dnew, Inew) [all …]
|
H A D | test_fast_scan_ivf.py | 144 for i in range(len(Iref)): 145 if np.all(Iref[i] == Inew[i]): # easy case 154 def three_metrics(Dref, Iref, Dnew, Inew): argument 155 nq = Iref.shape[0] 156 recall_at_1 = (Iref[:, 0] == Inew[:, 0]).sum() / nq 160 ninter += len(np.intersect1d(Inew[i], Iref[i])) 280 np.testing.assert_array_equal(Iref, Inew) 290 np.testing.assert_array_equal(Iref, Inew) 327 self.assertEqual(Iref[q, 0], Inew[q, 0]) 386 np.testing.assert_array_equal(Iref, Inew) [all …]
|
H A D | test_index_accuracy.py | 55 Dref, Iref = ivfk.search(ev.xq, 100) 58 print((Iref != Inew).sum(), Iref.size) 59 assert (Iref != Inew).sum() < Iref.size / 5000.0 283 Iref = set(I2[i, mask]) 284 ndiff += len(Inew ^ Iref) 285 ntot += len(Iref) 298 qno, Iref, Inew) 351 assert np.all(I == Iref) 374 assert np.all(I == Iref) 524 Iref = set(I2[i, mask]) [all …]
|
H A D | test_contrib.py | 36 Dref, Iref = index.search(xq, 10) 46 np.testing.assert_array_equal(Iref, Inew) 93 Dref, Iref = index.search(xq, 10) 97 assert np.all(Inew == Iref) 103 Dref, Iref = index.search(xq, 10) 107 assert np.all(Inew == Iref) 200 Iref = [ 213 lims_ref = np.cumsum([0] + [len(x) for x in Iref]) 214 Iref = np.hstack(Iref) 218 precision, recall = evaluation.range_PR(lims_ref, Iref, lims_new, Inew)
|
H A D | test_index_composite.py | 48 Dref, Iref = index1.search(xq, 10) 59 assert np.all(Inew == Iref) 319 Dref, Iref = index1.search(xq, 5) 323 assert np.all(Iref == Inew) 410 Dref, Iref = index_ref.search(xq, 20) 440 Dref, Iref = index_ref.search(xq, 20) 461 Dref, Iref = index.search(xq, 5) 555 Dref, Iref = index.search(xq, 10) 575 assert np.all(I == Iref) 589 Dref, Iref = index.search(xq, 10) [all …]
|
H A D | test_index.py | 43 Iref = all_dis.argsort(axis=1)[:, :k] 48 Dref = all_dis[np.arange(nq)[:, None], Iref] 49 self.assertLessEqual((Iref != I1).sum(), Iref.size * 0.0001) 364 Dref, Iref = index.search(xq, 5) 507 Dref, Iref = index.search(self.xq, 1) 508 self.Iref = Iref 591 mask = Iref[:, 0] == Ihnsw[:, 0] 670 recalls = (Iref == Insg).sum() 691 recalls = (Iref == Insg).sum() 747 recalls = (Iref == Insg).sum() [all …]
|
H A D | test_transfer_invlists.cpp | 75 std::vector<idx_t> Iref(nq * k); in test_index_type() local 77 src_index->search(nq, xq.data(), k, Dref.data(), Iref.data()); in test_index_type() 100 EXPECT_TRUE(Iref != Inew); in test_index_type() 136 EXPECT_TRUE(Iref == Inew); in test_index_type()
|
H A D | test_binary_hashindex.py | 59 Lref, Dref, Iref = index_ref.range_search(xq, radius) 74 ref = Iref[Lref[i]:Lref[i + 1]] 101 Lref, Dref, Iref = index_ref.range_search(xq, radius) 117 ref = Iref[Lref[i]:Lref[i + 1]] 145 Dref, Iref = index_ref.search(xq, k) 160 ref = Iref[i]
|
H A D | test_residual_quantizer.py | 309 Dref, Iref = index.search(ds.get_queries(), 10) 317 np.testing.assert_equal(Iref, Inew) 370 Dref, Iref = index.search(ds.get_queries(), 10) 378 np.testing.assert_array_equal(Iref, Inew) 408 Dref, Iref = faiss.knn( 414 Inew = np.zeros_like(Iref) 419 np.testing.assert_array_equal(Iref, Inew) 423 Dref, Iref = faiss.knn(xq, cents, 10, metric=faiss.METRIC_L2) 426 Inew = np.zeros_like(Iref) 430 np.testing.assert_array_equal(Iref, Inew)
|
H A D | test_index_binary.py | 160 Dref, Iref = index.search(self.xq, 10) 334 Dref, Iref = index_hnsw_ref.search(self.xq, 3) 353 Dref, Iref = index_ref.search(xq, 10) 372 self.assertTrue((Iref == I).all()) 386 self.assertTrue((Iref == I2).all()) 398 Dref, Iref = index_ref.search(xq, 10) 409 compare_binary_result_lists(Dref, Iref, D, I) 419 compare_binary_result_lists(Dref, Iref, D2, I2)
|
H A D | test_refine.py | 23 Dref, Iref = index.search(xq, 10) 30 new_dis = dc(int(Iref[q, j]))
|
H A D | test_ivflib.py | 99 Dref, Iref = index.search(xq, k) 111 np.testing.assert_array_equal(Inew, Iref) 133 Lref, Dref, Iref = index.range_search(xq, radius) 146 np.testing.assert_array_equal(Inew, Iref)
|
/dports/math/faiss/faiss-1.7.1/contrib/ |
H A D | evaluation.py | 38 def range_PR(lims_ref, Iref, lims_new, Inew, mode="overall"): argument 43 return Iref[lims_ref[i]:lims_ref[i + 1]] 150 lims_ref, Iref, argument 161 Iref = sort_range_res_1(lims_ref, Iref) 168 return Iref[lims_ref[i]:lims_ref[i + 1]] 229 def test_ref_knn_with_draws(Dref, Iref, Dnew, Inew): argument 234 for i in range(len(Iref)): 235 if np.all(Iref[i] == Inew[i]): # easy case 243 testcase.assertEqual(set(Iref[i, mask]), set(Inew[i, mask])) 246 def test_ref_range_results(lims_ref, Dref, Iref, argument [all …]
|
/dports/misc/visp/visp-3.4.0/modules/tracker/tt/src/zncc/ |
H A D | vpTemplateTrackerZNCCInverseCompositional.cpp | 88 double Iref; in initHessienDesired() local 115 Iref = ptTemplate[point].val; in initHessienDesired() 123 moyIref += Iref; in initHessienDesired() 172 Iref = ptTemplate[point].val; in initHessienDesired() 207 covarIref += (Iref - moyIref) * (Iref - moyIref); in initHessienDesired() 209 sIcIref += (Iref - moyIref) * (Ic - moyIc); in initHessienDesired() 243 double Iref; in trackNoPyr() local 271 Iref = ptTemplate[point].val; in trackNoPyr() 279 moyIref += Iref; in trackNoPyr() 305 Iref = ptTemplate[point].val; in trackNoPyr() [all …]
|
/dports/math/faiss/faiss-1.7.1/faiss/gpu/test/ |
H A D | test_contrib.py | 26 Dref, Iref = index.search(xq, 10) 36 np.testing.assert_array_equal(Iref, Inew)
|
/dports/math/faiss/faiss-1.7.1/benchs/ |
H A D | bench_for_interrupt.py | 117 Dref, Iref = index_1.search(xq, k) variable 155 print('diffs: %d / %d' % ((Iref != rh.I).sum(), Iref.size))
|