I can't figure how to copy a part of mat to another mat. ( or to itself)
I want for example to copy (or to keep) only the first row of srcMat.
I am using :
for ( int x = 0; x < height; x++ )
{
for ( int y = 0; y < width; y++ )
{
destMat = scrMat.at<float>(x,0);
}
}
I am not sure about using:
srcMat.copyTo( destMat( Rect( 0, x, srcMat.cols, srcMat.rows ) ) );