Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

a simple

Mat a, b; 
a = b;

assignment will only copy the Mat structure, and assign b's pixel pointer to a

for a "deep copy" ( esp. of the pixels ), i think, you want

a = b.clone()