// init intrinsic parameters (XML file) cv::Mat intrinsic; cv::Mat distortion; cv::FileStorage cvfs("calibration.xml", CV_STORAGE_READ); bool isOpened = cvfs.isOpened(); if(isOpened) { cvfs["mat_intrinsicMat"] >> intrinsic; cvfs["mat_distortionMat"] >> distortion; cvfs.release(); std::cout << intrinsic << std::endl; std::cout << distortion << std::endl; }