xml文件写入读取


void savesrt(const string save_path,Mat R,Mat t)
{
    cv::FileStorage fs(save_path, cv::FileStorage::WRITE);
    fs << "R" << R;
    fs << "t" << t;
    fs.release();
    std::cout << "写入文件成功.." << std::endl;
}

读取 

https://blog.csdn.net/RedDrn/article/details/103578398