diff --git a/samples/gpu/stereo_match.cpp b/samples/gpu/stereo_match.cpp index 012fda1085..c392cf1c88 100644 --- a/samples/gpu/stereo_match.cpp +++ b/samples/gpu/stereo_match.cpp @@ -212,7 +212,7 @@ void App::run() // Show results d_disp.download(disp); putText(disp, text(), Point(5, 25), FONT_HERSHEY_SIMPLEX, 1.0, Scalar::all(255)); - imshow("disparity", disp); + imshow("disparity", (Mat_)disp); handleKey((char)waitKey(3)); }