OpenCV/C++: Copying a row/column in a Mat to another?

Viewed 32291

I know I can do this by copying each element myself, but is there a method that does it for me? I tried mat2.copyTo(mat1.row(0)) but that doesn't work.

2 Answers
Related