Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Assuming this is c++

cv::Size sz = image.size();
int imageWidth = sz.width;
int imageHeight = sz.height;

Note: if the image has higher dimension than 2D (i.e. representing time-lapse or a stack of images), this may throw an exception.