float matrix_data[] = {0.9867, 0.02454, -0.1603,
0.01921, 0.9638, 0.2657,
0.16112, -0.2652, 0.9506};
cv::Mat res_mat = cv::Mat(3,3,CV_32F,matrix_data);
cout << "res_mat :" << res_mat<<endl;
I know I can see the output of the mat by this but I want to add this mat to a string, something like this:
std::string my_str = "my mat :";
my_str += to_String(res_mat);
so the desired result will be like :
my mat : 0.9867, 0.02454, -0.1603, 0.01921, 0.9638, 0.2657,0.16112, -0.2652, 0.9506