Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <opencv2/opencv.hpp>
  3.  
  4. using namespace cv;
  5.  
  6. int main(int argc, char** argv )
  7. {
  8.     Mat image;
  9.     image = imread( "lena.jpg", 1 );
  10.     if ( !image.data )
  11.     {
  12.         printf("No image data \n");
  13.         return -1;
  14.     }
  15.     namedWindow("Display Image", WINDOW_AUTOSIZE );
  16.     imshow("Display Image", image);
  17.     waitKey(0);
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement