Ask Your Question

Revision history [back]

From the Java docs under core librarie and Mat I have found this:

If you want to release the data pointed by a array header before the array destructor is called, use Mat.release().

However, a destructor is called automatically when a create object reaches the end of its scope. So basically if you do not want to release your object memory explicitly, you do not have to call this.