Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try this version.

` #include <opencv.hpp> #include <iostream>

using namespace std; using namespace cv;

int main(int argc, char *argv[]) { Mat img = imread("lena.jpg", 1); namedWindow("Lena", CV_WINDOW_AUTOSIZE); imshow("Lena", img); waitKey();

return 0;

} `