2015-05-17 05:16:10 -0600 | asked a question | Java OpenCV matrix .get() cause memory leak I have a problem with this part of code : It seems that the get method cause memory leak in Java. According to this analyze: I also tried to use another get method which gave me the double array But results is same Im using OpenCV 3-RC1 (I cannot downgrade if the problem is with the version) and Java 8. Does anybody have same problem or have solution ? Im working with a lot of video files and Im soon out of memory. Im releasing matrices after the operation so I dont know what to do more. If Im not performing this operation than memory is ok, so problem must be with the get method. I also tried manually run garbage collector and It wont help. So I think that the problem is with the native objects or Im doing it wrong. Or is there any other solution for iterating over matrix ? Thank you so much for help. |