Ask Your Question

Revision history [back]

Will cv::Mat reuse memory if it was declared inside a loop?

I'm moving from legacy IplImage * to new cv::Mat.

If I declare a Mat inside camera's loop, just to get a copy of current frame, will it alloc and release the memory storage at every run?

Thanks