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.
2 | No.2 Revision |
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.