Skip to content

Enhancement of feature matching processing distribution amongs available chunks#1928

Merged
servantftransperfect merged 1 commit intodevelopfrom
dev/featureMatchingParallelization
Mar 25, 2026
Merged

Enhancement of feature matching processing distribution amongs available chunks#1928
servantftransperfect merged 1 commit intodevelopfrom
dev/featureMatchingParallelization

Conversation

@servantftransperfect
Copy link
Contributor

@servantftransperfect servantftransperfect commented Jul 25, 2025

  • Cleanup loading and saving of pairs of indices (Output of ImageMatching)

  • Removed the "stream" version as they were never used

  • Cleanup exhaustive generation of pairs of indices (used if no imageMatching output)

  • Removed the obligation that pair.first < pair.second in the loaded file. This enable to have both directions in the same file (which is required for "star" roma)

  • Removed error if a pair contains twice the same value (To enable mirror matching)

  • Distribution of pairs to compute among chunks is now way more efficient ! Previous solution was to use the reference views as the items to distribute; But this is obviously creating problems as the numbers of pairs with the same reference image is not uniform at all.

@servantftransperfect servantftransperfect added this to the 3.3.0 milestone Jul 25, 2025
@servantftransperfect servantftransperfect force-pushed the dev/featureMatchingParallelization branch 2 times, most recently from aab762a to 311b8c6 Compare July 25, 2025 14:50
@fabiencastan fabiencastan modified the milestones: 3.3.0, 3.4.0 Aug 1, 2025
@servantftransperfect servantftransperfect force-pushed the dev/featureMatchingParallelization branch from 311b8c6 to da38f61 Compare September 1, 2025 10:37
@servantftransperfect servantftransperfect force-pushed the dev/featureMatchingParallelization branch from da38f61 to 0aec769 Compare September 10, 2025 07:15
@fabiencastan fabiencastan marked this pull request as draft January 28, 2026 13:59
@servantftransperfect servantftransperfect force-pushed the dev/featureMatchingParallelization branch 2 times, most recently from c90cc28 to d3b8005 Compare March 20, 2026 08:23
@servantftransperfect servantftransperfect marked this pull request as ready for review March 20, 2026 08:24

This comment was marked as outdated.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 7 comments.

Comments suppressed due to low confidence (1)

src/aliceVision/matchingImageCollection/ImagePairListIO_test.cpp:34

  • This test expectation no longer matches the current loadPairsFromFile() behavior: with the default useSymmetry=true, a line "2 0" will be normalized and loaded as pair (0,2), not (2,0). As written, loaded_Pairs will not be equal to pairSetGTsorted. Either update the expected set back to (0,2) or change loadPairsFromFile() semantics/defaults if directionality is intended to be preserved.

    PairSet pairSetGTsorted;
    pairSetGTsorted.insert(std::make_pair(0, 1));
    pairSetGTsorted.insert(std::make_pair(2, 0));
    pairSetGTsorted.insert(std::make_pair(1, 2));

    BOOST_CHECK(savePairsToFile("pairsT_IO.txt", pairSetGT));

    PairSet loaded_Pairs;
    BOOST_CHECK(loadPairsFromFile("pairsT_IO.txt", loaded_Pairs));
    BOOST_CHECK(std::equal(loaded_Pairs.begin(), loaded_Pairs.end(), pairSetGTsorted.begin()));

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@servantftransperfect servantftransperfect force-pushed the dev/featureMatchingParallelization branch 3 times, most recently from 5215470 to d87c655 Compare March 23, 2026 07:49
@CedricThebault CedricThebault force-pushed the dev/featureMatchingParallelization branch from f270974 to 2616d51 Compare March 25, 2026 10:17
@servantftransperfect servantftransperfect force-pushed the dev/featureMatchingParallelization branch from 2616d51 to 1a04df9 Compare March 25, 2026 13:19
@servantftransperfect servantftransperfect merged commit 9689331 into develop Mar 25, 2026
3 of 4 checks passed
@servantftransperfect servantftransperfect deleted the dev/featureMatchingParallelization branch March 25, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants