1
#include <opencv2/core.hpp>
2
#include <opencv2/imgcodecs.hpp>
3
#include <opencv2/highgui.hpp>
9
int main( int argc, char** argv )
13
cout <<" Usage: display_image ImageToLoadAndDisplay" << endl;
18
image = imread(argv[1], IMREAD_COLOR); // Read the file
20
if( image.empty() ) // Check for invalid input
22
cout << "Could not open or find the image" << std::endl ;
26
namedWindow( "Display window", WINDOW_AUTOSIZE ); // Create a window for display.
27
imshow( "Display window", image ); // Show our image inside it.
29
waitKey(0); // Wait for a keystroke in the window
b'\\ No newline at end of file'