I wish to display image using c++ OpenCV code. Below are the code fragment:
//Load image
Mat img = imread("Example1.jpg");
//Display in window
namedWindow("Skin");
//display image
imshow("Skin",img);
//returns the matrix size
cout<<img.size()<<endl; // wrong
Please help on how to display the size. I have tried many times buy fail.
1 Answer