Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

after successfully building with opencv contrib modules I am getting error

i used the following configuration

cmake -D CMAKE_BUILD_TYPE=RELEASE

-D CMAKE_INSTALL_PREFIX=/usr/local
-D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules

-D BUILD_OPENCV_ENABLE_NONFREE=ON
-D WITH_OPENCL=ON
-D WITH_TBB=OFF -D WITH_OPENMP=ON -D WITH_V4L=ON
-D WITH_QT=OFF
-D WITH_OPENGL=ON
-D BUILD_EXAMPLES=ON ..

it did installed successfully

and for compiling my code, I Used
g++ 3bm3d.cpp -o bm3d `pkg-config --cflags --libs opencv ` -lopencv_xphoto

but still I am getting this infamous error ->

terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(3.4.2) /home/odroid/Desktop/is2/opencv_contrib/modules/xphoto/src/bm3d_image_denoising.cpp:303: error: (-213: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 function 'bm3dDenoising'

what else could I be possibly missing ??