Change hardcoded relative path for instrinsics file to current path, matching the extrinsics file.

https://github.com/Itseez/opencv/issues/6456
pull/6458/head
Eric Liao 9 years ago
parent ec63343f34
commit d3aaf8acf3
  1. 2
      samples/cpp/stereo_calib.cpp

@ -212,7 +212,7 @@ StereoCalib(const vector<string>& imagelist, Size boardSize,bool displayCorners
cout << "average epipolar err = " << err/npoints << endl;
// save intrinsic parameters
FileStorage fs("../data/intrinsics.yml", FileStorage::WRITE);
FileStorage fs("intrinsics.yml", FileStorage::WRITE);
if( fs.isOpened() )
{
fs << "M1" << cameraMatrix[0] << "D1" << distCoeffs[0] <<

Loading…
Cancel
Save