Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can I imread just an ROI, not the whole image?

Hey all,

This seems like a really dumb question, but I've searched, and cannot find any answer.

I am working with large images -- or at least large enough that I don't want to load the whole thing into memory -- and I want to process just ROI at a time.

Is there a way in OpenCV to read just a desired ROI into memory? Or do I have to imread the whole thing, copy out my ROI and release the full image?