First time here? Check out the FAQ!
answered 2016-04-28 08:42:40 -0600
Mat B=Mat(A,Rect(0,1,A.rows,5)); Mat C; B.copyTo(C);
B will be a part of matrix A (if you change A, B will change, too). C is a copy of B (so they are independent).