First time here? Check out the FAQ!
answered 2013-07-17 19:17:51 -0600
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()