Your problem there is that imshow needs a cv::Mat parameter instead of cv::Rect. It is very explicit in the error message, so use imshow("Example1",image_1);