From 92517fa359b1d2b6b5d08f6f4f1eb95cc3e06a70 Mon Sep 17 00:00:00 2001 From: Suleyman TURKMEN Date: Sun, 9 Sep 2018 17:49:09 +0300 Subject: [PATCH] Update window.cpp --- modules/highgui/src/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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