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
You should read this and after this
read the documentation cv::Mat, cv::Mat::cols, cv::Mat::rows
Thanks, I managed to get what i wanted with image.rows and image.cols
you can share your code here :)