I really appreciate your answer thank you.
To people looking for the RAM specs, here is what is mentioned in the CAM M7 datasheet (RAM Layout) :
- 128KB .DATA/.BSS/Heap/Stack
- 384KB Frame Buffer/Stack
Note that you can call get_statistics() directly on the image. Do that to avoid the get_histogram call. This shouldn't fail then. get_statistics will also support the ROI argument.
OK I will definitively use get_statistics() directly on an image.
I'll come back to you if I encounter any problem.