Skip to content

xfeatures2d module built with SURF and SIFT even when OPENCV_ENABLE_NONFREE is disabled #1668

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

Closed
SwooshyCueb opened this issue Jun 20, 2018 · 4 comments

Comments

@SwooshyCueb
Copy link

When setting OPENCV_ENABLE_NONFREE to false, the SURF and SIFT bits of the xfeatures2d module are still built. It is my understanding that these bits are patented and require licensing if they are to be used, so they should only be built if OPENCV_ENABLE_NONFREE is set to true.

@berak
Copy link
Contributor

berak commented Jun 21, 2018

what would be better:

  • hiding the SIFT & SURF classes completely (conditional compilation)
  • throw a runtime exception in the create() function, similar to here

strike that. the 1st option is not feasible, because all those #ifdefs would seep out into the main opencv branch, too (think of the tutorials/samples using this)

@SwooshyCueb
Copy link
Author

I agree! I might be able to work on a pull request for this soon-ish.

@drzraf
Copy link

drzraf commented Jul 1, 2018

Isn't #442 a free (or at least authorized) implementation? Wouldn't that be even better?

@berak
Copy link
Contributor

berak commented Jul 1, 2018

@drzraf , it's the algorithm, which is patented, not the implementation. (so, same problem there, imho)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants