Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problem with call of function bm3dDenoising() and xphoto ...


I would like to create small opencv script woth BM3D denoising. I can't call propely this fucntion in opencv

bm3dDenoising() ? Could anyone help me please ? About include and Namespace ?

using namespace cv::xphoto;
using namespace std;

    int main()
 //Load an Image
 Mat img = imread("C:\\image2.jpg", CV_LOAD_IMAGE_COLOR);
 namedWindow("Image", CV_WINDOW_AUTOSIZE);
 imshow("Image", img);

 //Blur Effect
 GaussianBlur(img, img, cv::Size(3, 3), 0);
 cv::xphoto::bm3dDenoising(img, img);  // ????
 namedWindow("Output", CV_WINDOW_AUTOSIZE);
 imshow("Output", img);
 //Wait Key press
 return 0;