Copies the matrix to another one.
C++: void Mat::copyTo(OutputArray m) const
C++: void Mat::copyTo(OutputArray m, InputArray mask) const
Parameters
m – Destination matrix. If it does not have a proper size or type before the operation, it is reallocated.
C++: void Mat::copyTo(OutputArray m) const
C++: void Mat::copyTo(OutputArray m, InputArray mask) const
Parameters
m – Destination matrix. If it does not have a proper size or type before the operation, it is reallocated.
mask – Operation mask. Its non-zero elements indicate which matrix elements need to be copied.
这个函数可以复制图像到另一个图像或矩阵上,可选参数是掩码