Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

memory management of Mat

I read in the below link about the Mat variables about how it allocates and deallocates memory http://docs.opencv.org/doc/tutorials/core/mat_the_basic_image_container/mat_the_basic_image_container.html

In the link, its mentioned that Mat is that you no longer need to manually allocate its memory and release it as soon as you do not need it

What I don't understand it how and exactly when it will de-allocate the memory of a Mat.

Suppose I am running my Opencv Application.

Whether it will de-allocate its memory when I exit the running Application(when I press Ctrl+C)

Please clarify me on this.

Thanks in advance Sarjoondeen.