VS2019下编译OpenCV410,使用BM3D功能。

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

                                                        VS2019下编译OpenCV410,使用BM3D功能。_第1张图片

调试窗口出现以下错误提示:

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选项,再次编译后,可以正常使用。

你可能感兴趣的:(OpenCV,BM3D,VS,C++)