I'm trying to save my cameramatrix into a yml file using cv::FileStorage , this work fine :
cv::FileStorage fs("calibration_result.yml",cv::FileStorage::WRITE);
..............
this->fs << "the camera matrix is "<<this->cameraMatrix;
here is what I get :
the camera matrix is : !!opencv-matrix /* why do I get this
rows:
cols: 3
dt: d
data: [ 6.9722486929603847e+003, 0., 6.3950000000000000e+002, 0.,
7.0010247500898549e+003, 5.1150000000000000e+002, 0., 0., 1. ]
what I want to get is :
the camera matrix is :
[ 6.9722486929603847e+003, 0., 6.3950000000000000e+002, 0.,
7.0010247500898549e+003, 5.1150000000000000e+002, 0., 0., 1. ]
I already tried to use cameraMatrix.data
it didn't help!
any idea how can I do this!
thanks in advance !