{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/bansac-a-dynamic-bayesian-network-for","title":"BANSAC: A dynamic BAyesian Network for adaptive SAmple Consensus","arxiv_id":"2309.08690","date":"2023-09-15","proceeding":"ICCV 2023 1","authors":["Valter Piedade","Pedro Miraldo"],"abstract":"RANSAC-based algorithms are the standard techniques for robust estimation in computer vision. These algorithms are iterative and computationally expensive; they alternate between random sampling of data, computing hypotheses, and running inlier counting. Many authors tried different approaches to improve efficiency. One of the major improvements is having a guided sampling, letting the RANSAC cycle stop sooner. This paper presents a new adaptive sampling process for RANSAC. Previous methods either assume no prior information about the inlier/outlier classification of data points or use some previously computed scores in the sampling. In this paper, we derive a dynamic Bayesian network that updates individual data points' inlier scores while iterating RANSAC. At each iteration, we apply weighted sampling using the updated scores. Our method works with or without prior data point scorings. In addition, we use the updated inlier/outlier scoring for deriving a new stopping criterion for the RANSAC loop. We test our method in multiple real-world datasets for several applications and obtain state-of-the-art results. Our method outperforms the baselines in accuracy while needing less computational time.","url_abs":"https://arxiv.org/abs/2309.08690v2","url_pdf":"https://arxiv.org/pdf/2309.08690v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"bansac-a-dynamic-bayesian-network-for","repo_url":"https://github.com/merlresearch/bansac","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"none","reach":{"status":"ok","spdx":"AGPL-3.0"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2309.08690","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2309.08690"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/merlresearch/bansac","reach":{"status":"ok","spdx":"AGPL-3.0"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/ducha-aiki/ransac-tutorial-2020-data","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":9,"unverified":14},"by_repo_kind":{"official":{"samples":9,"ran":7,"repositories":1},"found_in_text":{"samples":14,"ran":2,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":9,"samples":[{"code_sha256_prefix":"89311fed6a0bb7e7","entry":"calc_mAA_pose","repo":"merlresearch/bansac","repo_kind":"official","path":"evaluation_homography_script.py","file_url":"https://github.com/merlresearch/bansac/blob/HEAD/evaluation_homography_script.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"AGPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"89311fed6a0bb7e7"}},{"code_sha256_prefix":"7034acf17d21781e","entry":"filter_outlier_estimates","repo":"merlresearch/bansac","repo_kind":"official","path":"extra_functions.py","file_url":"https://github.com/merlresearch/bansac/blob/HEAD/extra_functions.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"AGPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"7034acf17d21781e"}},{"code_sha256_prefix":"2d73cf40d9b8491c","entry":"filter_outlier_estimates_h","repo":"merlresearch/bansac","repo_kind":"official","path":"extra_functions.py","file_url":"https://github.com/merlresearch/bansac/blob/HEAD/extra_functions.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"AGPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"2d73cf40d9b8491c"}},{"code_sha256_prefix":"5e94c57a3b57b0a8","entry":"get_single_result_nmnet","repo":"ducha-aiki/ransac-tutorial-2020-data","repo_kind":"found_in_text","path":"create_E_submission.py","file_url":"https://github.com/ducha-aiki/ransac-tutorial-2020-data/blob/HEAD/create_E_submission.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5e94c57a3b57b0a8"}},{"code_sha256_prefix":"16ca441629f05f9e","entry":"is_problem_essential","repo":"merlresearch/bansac","repo_kind":"official","path":"evaluation_relative_pose_script.py","file_url":"https://github.com/merlresearch/bansac/blob/HEAD/evaluation_relative_pose_script.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"AGPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"16ca441629f05f9e"}},{"code_sha256_prefix":"e2a9531039b8f647","entry":"is_problem_fundamental","repo":"merlresearch/bansac","repo_kind":"official","path":"evaluation_relative_pose_script.py","file_url":"https://github.com/merlresearch/bansac/blob/HEAD/evaluation_relative_pose_script.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"AGPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"e2a9531039b8f647"}},{"code_sha256_prefix":"c7761fbbd6deedc9","entry":"load_h5","repo":"merlresearch/bansac","repo_kind":"official","path":"utils.py","file_url":"https://github.com/merlresearch/bansac/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"AGPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"c7761fbbd6deedc9"}},{"code_sha256_prefix":"94e9a3bb3e200ed8","entry":"norm_test_data","repo":"ducha-aiki/ransac-tutorial-2020-data","repo_kind":"found_in_text","path":"create_F_submission.py","file_url":"https://github.com/ducha-aiki/ransac-tutorial-2020-data/blob/HEAD/create_F_submission.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"94e9a3bb3e200ed8"}},{"code_sha256_prefix":"488d979debc09ee1","entry":"normalize_keypoints","repo":"merlresearch/bansac","repo_kind":"official","path":"utils.py","file_url":"https://github.com/merlresearch/bansac/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"AGPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"488d979debc09ee1"}},{"code_sha256_prefix":"3352be6badc979dc","entry":"create_F_submission_cv2","repo":"ducha-aiki/ransac-tutorial-2020-data","repo_kind":"found_in_text","path":"create_opencv_F_submission_example.py","file_url":"https://github.com/ducha-aiki/ransac-tutorial-2020-data/blob/HEAD/create_opencv_F_submission_example.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3352be6badc979dc"}},{"code_sha256_prefix":"e072c080564ed733","entry":"create_cv2_submission","repo":"ducha-aiki/ransac-tutorial-2020-data","repo_kind":"found_in_text","path":"create_opencv_homography_submission_example.py","file_url":"https://github.com/ducha-aiki/ransac-tutorial-2020-data/blob/HEAD/create_opencv_homography_submission_example.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e072c080564ed733"}},{"code_sha256_prefix":"b292ac3a2d5644f7","entry":"eval_single_result","repo":"ducha-aiki/ransac-tutorial-2020-data","repo_kind":"found_in_text","path":"eval_H_submission.py","file_url":"https://github.com/ducha-aiki/ransac-tutorial-2020-data/blob/HEAD/eval_H_submission.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b292ac3a2d5644f7"}},{"code_sha256_prefix":"c471f67bff60d8ba","entry":"evaluate_results","repo":"ducha-aiki/ransac-tutorial-2020-data","repo_kind":"found_in_text","path":"create_opencv_F_submission_example.py","file_url":"https://github.com/ducha-aiki/ransac-tutorial-2020-data/blob/HEAD/create_opencv_F_submission_example.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c471f67bff60d8ba"}},{"code_sha256_prefix":"6a8ff33c334e3d91","entry":"evaluate_results","repo":"ducha-aiki/ransac-tutorial-2020-data","repo_kind":"found_in_text","path":"create_opencv_homography_submission_example.py","file_url":"https://github.com/ducha-aiki/ransac-tutorial-2020-data/blob/HEAD/create_opencv_homography_submission_example.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6a8ff33c334e3d91"}},{"code_sha256_prefix":"d60972f016f28b3c","entry":"evaluate_results","repo":"ducha-aiki/ransac-tutorial-2020-data","repo_kind":"found_in_text","path":"eval_E_submission.py","file_url":"https://github.com/ducha-aiki/ransac-tutorial-2020-data/blob/HEAD/eval_E_submission.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d60972f016f28b3c"}},{"code_sha256_prefix":"529157dfe8856630","entry":"evaluate_results","repo":"ducha-aiki/ransac-tutorial-2020-data","repo_kind":"found_in_text","path":"eval_F_submission.py","file_url":"https://github.com/ducha-aiki/ransac-tutorial-2020-data/blob/HEAD/eval_F_submission.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"529157dfe8856630"}},{"code_sha256_prefix":"5c4b84f16433a7d0","entry":"evaluate_results","repo":"ducha-aiki/ransac-tutorial-2020-data","repo_kind":"found_in_text","path":"eval_H_submission.py","file_url":"https://github.com/ducha-aiki/ransac-tutorial-2020-data/blob/HEAD/eval_H_submission.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5c4b84f16433a7d0"}},{"code_sha256_prefix":"fae4ae4068906ca6","entry":"get_E_from_F","repo":"merlresearch/bansac","repo_kind":"official","path":"utils.py","file_url":"https://github.com/merlresearch/bansac/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"AGPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"fae4ae4068906ca6"}},{"code_sha256_prefix":"378300939a1cd4ea","entry":"get_single_result","repo":"ducha-aiki/ransac-tutorial-2020-data","repo_kind":"found_in_text","path":"create_E_submission.py","file_url":"https://github.com/ducha-aiki/ransac-tutorial-2020-data/blob/HEAD/create_E_submission.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"378300939a1cd4ea"}},{"code_sha256_prefix":"9f34abc565b4b791","entry":"get_single_result_filtered","repo":"ducha-aiki/ransac-tutorial-2020-data","repo_kind":"found_in_text","path":"create_E_submission.py","file_url":"https://github.com/ducha-aiki/ransac-tutorial-2020-data/blob/HEAD/create_E_submission.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9f34abc565b4b791"}},{"code_sha256_prefix":"1144116559fc1644","entry":"get_time_avg_eval","repo":"merlresearch/bansac","repo_kind":"official","path":"evaluation_homography_script.py","file_url":"https://github.com/merlresearch/bansac/blob/HEAD/evaluation_homography_script.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"AGPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"1144116559fc1644"}},{"code_sha256_prefix":"940ad3906b738f2d","entry":"grid_search_hypers_opencv","repo":"ducha-aiki/ransac-tutorial-2020-data","repo_kind":"found_in_text","path":"create_opencv_F_submission_example.py","file_url":"https://github.com/ducha-aiki/ransac-tutorial-2020-data/blob/HEAD/create_opencv_F_submission_example.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"940ad3906b738f2d"}},{"code_sha256_prefix":"deff7e2a474adf99","entry":"grid_search_hypers_opencv","repo":"ducha-aiki/ransac-tutorial-2020-data","repo_kind":"found_in_text","path":"create_opencv_homography_submission_example.py","file_url":"https://github.com/ducha-aiki/ransac-tutorial-2020-data/blob/HEAD/create_opencv_homography_submission_example.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"deff7e2a474adf99"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}