How can I break Mat into readable format i.e get the row and column values printed and convert that readable value back to Mat again
I want something like this Eg Mat something;
printf(something) = {{0,0},{0,1},{1,0},{1,1}...etc}
and now convert those back to Mat
{0,0},{0,1},{1,0},{1,1}...etc}=> something
I tried using this
for(int i=0 ; i<something.rows ; i++){
for(int j=0 ; j<something.cols ; j++){
printf("something rows and cols: %d %d \n", something.row(i),something.row(j));
}
}
But I am getting same values
1124057088 2
1124057088 2
1124057088 2
1124057088 2
1124057088 2
1124057088 2
1124057088 2
Any help is appreciated