在使用cmake对opencv3.4.1之后版本和opencv_contrib进行编译时,需要把OPENCV_ENABLE_NONFREE选项勾选上,否则后续无法在visual studio使用xfeature2d模块。
作者编译的版本:
opencv3.4.5+opencv_contrib3.4.5+vs2015
opencv3.4.6+opencv_contrib3.4.6+vs2015
参考链接:https://mem-archive.com/2018/11/10/post-1129/