SyntaxFix
Write A Post
Hire A Developer
Questions
You can use rows and cols:
rows
cols
cout << "Width : " << src.cols << endl; cout << "Height: " << src.rows << endl;
or size():
size()
cout << "Width : " << src.size().width << endl; cout << "Height: " << src.size().height << endl;