I use OpenCV and read gigabytes of images - too much to fit into memory at a time. However, I need to initialize some basic structures that require image sizes. At the moment, I use imread
and then immediately release the image, and it is really inefficient.
Is there a way to get image sizes without reading the whole file using opencv? If you hadn’t proposed another library (preferably light, seeing that all this will be used), which can analyze the headers? Ideally, it would support at least as many formats as OpenCV.
source
share