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?
Actually I think the way you are describing is actually the only possible way. I am doing exactly the same for 5000x5000 and 25000x25000 images.
Hmmm, maybe a feature request is in order? All it would take would be a flavor of imread with an extra ROI argument
Then you should try it to implement yourself and file a pull request. :)