Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. if ( argc != 2 ){
  2. cout << "usage: ./myApp n";
  3. return -1;
  4. }
  5.  
  6. Mat image;
  7. image = imread( argv[1], 1 );
  8.  
  9. if ( !image.data ){
  10. cout << "No image data n";
  11. return -1;
  12. }
  13.  
  14. waitKey(0);
  15.  
  16. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement