你是要问怎么访问Mat中的元素,还是要问整体的那种赋值操作?我分别举个例子吧:
MatA.at(1, 1) = 0;
Mat MatA = imread("sss.jpg"); Mat MatB = MatA;