Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <opencv2/opencv.hpp>
- using namespace cv;
- int main(int argc, char** argv )
- {
- Mat image;
- image = imread( "lena.jpg", 1 );
- if ( !image.data )
- {
- printf("No image data \n");
- return -1;
- }
- namedWindow("Display Image", WINDOW_AUTOSIZE );
- imshow("Display Image", image);
- waitKey(0);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement