I would like to ask how to format a OpenCV Mat in C++ and print it out?
For example, a Mat with double content M, when I wrote
cout<<M<<endl;
I will get
[-7.7898273846583732e-15, -0.03749374753019832; -0.0374787251930463, -7.7893623846343843e-15]
But I want a neat output, for example
[0.0000, -0.0374; -0.0374, 0.0000]
Is there any built-in way to do so?
I know we can use
cout<<format(M,"C")<<endl;
to set the output styple. So I am looking for something similar to this.
Thank you very much!