cv.copyTo - MATLAB File Help
cv.copyTo

Copies the matrix to another one

dst = cv.copyTo(src)
dst = cv.copyTo(src, 'OptionName',optionValue, ...)

Input

Output

Options

The method copies the matrix data to another matrix. Before copying the data, the destination matrix is allocated if needed, initialized with all zeros.

See also