make cv::calibrateCamera, cv::stereoCalibrate and their C counterparts return the standard RMS error.

This commit is contained in:
Vadim Pisarevsky
2010-11-30 10:27:34 +00:00
parent 8754cafffb
commit 3fd07809c9
3 changed files with 10 additions and 9 deletions

View File

@@ -1742,7 +1742,7 @@ CV_IMPL double cvCalibrateCamera2( const CvMat* objectPoints,
}
}
return reprojErr;
return std::sqrt(reprojErr/total);
}
@@ -2254,7 +2254,7 @@ double cvStereoCalibrate( const CvMat* _objectPoints, const CvMat* _imagePoints1
}
}
return reprojErr;
return std::sqrt(reprojErr/(pointsTotal*2));
}