Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

java's gc thinks, a Mat is fairly small, like 30 bytes, it does not see the c++ allocated memory, so it will take ages, until the gc is triggered.

you'll have to release the tempMat, obtained from the transpose, at the end of your function.

java's gc thinks, a Mat is fairly small, like 30 bytes, it does not see the c++ allocated memory, so it will take ages, until the gc is triggered.

you'll have to (manually) release the tempMat, obtained from the transpose, at the end of your function.