answered Jun 26 '12
Yes, OpenCV 2.4.1 adds such functionality, you can check ChangeLog for the sample code.
BTW, for debugging purposes you can use something like this:
cout << myMatrix << endl;