cout << mat1 <<endl;
اگر هم مایل باشید داخل string ذخیره کنید به صورت زیر :
string str1(mat1.begin<uchar>(),mat1.end<uchar>());