Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
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).