Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you NEVER use new or delete here.

Mat m(H,W,sometype);

will allocate data

m.release(); // called automatically at end of scope

will deallocate it