Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[matching] implement cross check for feature matching #980

Merged
merged 1 commit into from
Feb 19, 2021

Conversation

ghost
Copy link

@ghost ghost commented Feb 13, 2021

Add cross check for feature matching :

For an image pair (I, J).

If a keypoint a in I match to a keypoint b in J, then this match is accepted if and only if keyboint b in J match to keypoint a in I.

matcherCross.Match(_f_dist_ratio, regionsI, vec_putatives_matches_cross);

//Create a dictionnary of matches indexed by their pair of indexes
std::map<std::pair<int, int>, IndMatch> check_matches;
Copy link
Contributor

Choose a reason for hiding this comment

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

You could use existing code for this. See here https://github.com/alicevision/AliceVision/blob/develop/src/aliceVision/matching/filters.hpp. Symmetric matches filtering

Copy link
Author

Choose a reason for hiding this comment

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

  • This function requires multiple conversions before input, and after output.
  • It requires to build 3 vectors the size of the features sets even if the amount of matches is very low

Copy link
Member

@fabiencastan fabiencastan Feb 15, 2021

Choose a reason for hiding this comment

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

I did not look into the details but the ability to use nndistanceratio or symmetric or combine both may be interesting to expose.

@fabiencastan fabiencastan added this to the 2.4.0 milestone Feb 19, 2021
@fabiencastan fabiencastan merged commit 819608d into develop Feb 19, 2021
@fabiencastan fabiencastan deleted the dev/crossMatching branch February 19, 2021 10:53
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.

3 participants