#include <iostream>
#include <opencv2/core.hpp>
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
using namespace cv;
using namespace std;
int main()
{
try
{
Mat img = imread("C:/1.jpg", IMREAD_UNCHANGED);
namedWindow("Display window", WINDOW_AUTOSIZE);// Create a window for display.
imshow("Display window", img);
waitKey(0);
}
catch (const std::exception & e)
{
cout << e.what() << std::endl;
}
}