Opencv_contrib: xfeatures2d module built with SURF and SIFT even when OPENCV_ENABLE_NONFREE is disabled

Created on 20 Jun 2018  ·  4Comments  ·  Source: opencv/opencv_contrib

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.

bug builinstall xfeatures2d feature

All 4 comments

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)

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

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

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

Was this page helpful?
0 / 5 - 0 ratings