Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

width and height of imread

const char* filename = "people.jpg";
Mat image = imread(filename, CV_LOAD_IMAGE_GRAYSCALE);

I would like the get the width and height of the image. Also I would like to divide the image into 9 parts

X  X  X
X  X  X
X  X  X

But before I can do that, I need to get the width and height