Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( argc != 2 ){
- cout << "usage: ./myApp n";
- return -1;
- }
- Mat image;
- image = imread( argv[1], 1 );
- if ( !image.data ){
- cout << "No image data n";
- return -1;
- }
- waitKey(0);
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement