Skip to content

Add BEBLID local feature descriptor #2774

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

Merged
merged 4 commits into from
Dec 9, 2020
Merged

Add BEBLID local feature descriptor #2774

merged 4 commits into from
Dec 9, 2020

Conversation

iago-suarez
Copy link
Contributor

@iago-suarez iago-suarez commented Dec 4, 2020

Merge with extra: opencv/opencv_extra#827

BEBLID is a efficient binary descriptor learned with boosting. In several benchmarks it has proved to largely improve other binary descriptors like ORB or BRISK with the same efficiency. BEBLID describes using the difference of mean gray values in
different regions of the image around the KeyPoint, the descriptor is specifically optimized for
image matching and patch retrieval addressing the asymmetries of these problems.

image

This Pull Request ports the original code to OpenCV. The article explaining all the details and comparing the descriptor in several tasks can be found here.

Iago Suárez, Ghesn Sfeir, José M. Buenaposada, and Luis Baumela. BEBLID: Boosted efficient binary local image descriptor.
Pattern Recognition Letters, 133:366–372, 2020.

Testing this implementation with the code of the A-KAZE tutorial, we have found that, detecting 10000 keypoints with ORB and describing with BEBLID obtains 561 inliers (75%) whereas describing with ORB obtains only 493 inliers (63%).

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is reference to original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake
opencv_extra=master
force_builders=linux,win,mac,docs

Copy link
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

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

Great contribution!

Please take a look on comments below.

BEBLID::SIZE_512_BITS or BEBLID::SIZE_256_BITS.
*/
CV_WRAP static Ptr<BEBLID> create(float scale_factor,
BEBLID::BeblidSize n_bits = BEBLID::SIZE_512_BITS);
Copy link
Member

Choose a reason for hiding this comment

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

OK, lets use int here for now.

I filled Java binding generator bug here: opencv/opencv#19056

Copy link
Contributor Author

@iago-suarez iago-suarez Dec 8, 2020

Choose a reason for hiding this comment

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

Perfect, I changed the code to use int again

…ng descriptors when no keypoints are detected.
Copy link
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

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

Well done! Thank you for contribution 👍

@alalek alalek merged commit bc1ea8f into opencv:master Dec 9, 2020
@iago-suarez
Copy link
Contributor Author

Thanks for your review and comments @alalek , it's a pleasure to contribute! 😃

@alalek alalek mentioned this pull request Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants