使用VS2019编译OpenCV410,使用CMake编译opencv_contrib模块以使用BM3D滤波功能。编译完后调试运行时出现如下错误:

调试窗口出现以下错误提示:
OpenCV(4.1.0) Error: The function/feature is not implemented (This algorithm is patented and is excluded in this configuration;Set OPENCV_ENABLE_NONFREE CMake option and rebuild the library) in cv::xphoto::bm3dDenoising, file E:\PXP\VS\OpenCV\OpenCV410\dependency\opencv_contrib-4.1.0\modules\xphoto\src\bm3d_image_denoising.cpp, line 343
按照提示,使用CMake重新配置工程,并勾选上OPENCV_ENABLE_NONFREE选项,再次编译后,可以正常使用。

本文介绍在使用VS2019编译OpenCV410时,如何解决编译opencv_contrib模块中BM3D滤波功能的问题。通过重新配置CMake并启用OPENCV_ENABLE_NONFREE选项,成功克服了专利限制导致的功能未实现错误。
2314

被折叠的 条评论
为什么被折叠?



