我有一个运行相机校准的校准程序。我想将校准结果保存在一个YML
文件中,该文件可以正常工作,除非我尝试保存重 投影错误,这是我所做的双倍值:
cv::FileStorage fs= cv::FileStorage("calibration_result.yml",cv::FileStorage::WRITE); /*creating the storage file for the calibration results */
.......................................................
this->fs << "the camera matrix is "<<this->cameraMatrix;
.....................................................................
this->fs<< "the number of used frames is "<<this->actualnumberOfFrames;
///this->fs<< " the reprojection error " << this->reprojectionError; when I activate this line the storage stops at the **actualnumberOfFrames**
this->fs<<"the used resolution is " << this->theFrameSIZE;
this->fs << "used flags in the calirbation function" << this->flagsName;
this->fs<<"the distortion Coefficients are "<< this->distortionCoeff;
this->fs<<"the rotation vector is "<< this->rvec;
this->fs <<"the tangiantiale vector" << this->tvecs;
......................................................
我仔细检查了变量值,它很好,我真的在结果文件中找到了值!
任何想法我可以如何解决这个问题?提前感谢您的帮助!