Ask Your Question

Revision history [back]

Typically, the image size information is part of the image header in almost all the formats. So, if you are dealing with a fixed format, say JPEG, you should be able to write a little function that will open the file, read only the header, and close the file. Of course, this will be not a part of OpenCV library but if there is such a function in OpenCV, that will be great.