Ask Your Question

release mat

asked 2013-03-24 05:24:04 -0500

pocahentez gravatar image

Hi,how can i release a mat with native code?

edit retag flag offensive close merge delete


mat.release() ?

berak gravatar imageberak ( 2013-03-24 05:40:50 -0500 )edit

Mat auto releases as i know, but if you use mat a; a.release// this only releases row data so i think, if you want to release by yoursellf. maybe use: a.release;a=null;

wuling gravatar imagewuling ( 2013-03-24 08:25:15 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-03-24 16:28:03 -0500

Mat is an object from the C++ API which does not need explicit release. It is done automatically. So why would you want to do this?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2013-03-24 05:24:04 -0500

Seen: 212 times

Last updated: Mar 24 '13