diff --git a/modules/highgui/src/window.cpp b/modules/highgui/src/window.cpp index 346ee2436d..e1e7af0ced 100644 --- a/modules/highgui/src/window.cpp +++ b/modules/highgui/src/window.cpp @@ -366,7 +366,7 @@ void cv::imshow( const String& winname, InputArray _img ) if (useGl <= 0) { Mat img = _img.getMat(); - CvMat c_img = img; + CvMat c_img = cvMat(img); cvShowImage(winname.c_str(), &c_img); } else