From ee129cc659dde2c8b8746df65cf6c2ad679a5645 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Mon, 8 Apr 2024 15:38:07 +0200 Subject: [PATCH] remove unused function --- calibrationCharuco.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/calibrationCharuco.cpp b/calibrationCharuco.cpp index 1f200f4..57e2786 100644 --- a/calibrationCharuco.cpp +++ b/calibrationCharuco.cpp @@ -151,26 +151,16 @@ int main(int argc, char *argv[]) { cv::aruco::calibrateCameraCharuco(allCharucoCorners, allCharucoIds, charucoboard, imgSize, cameraMatrix, distCoeffs, rvecs, tvecs, calibrationFlags); - bool saveOk = cv::saveCameraParams(outputFile, imgSize, 16.0f/9.0f, calibrationFlags, - cameraMatrix, distCoeffs, repError); - if(!saveOk) { - std::cerr << "Cannot save output file" << std::endl; - return 0; - } - std::cout << "Rep Error: " << repError << std::endl; std::cout << "Rep Error Aruco: " << arucoRepErr << std::endl; std::cout << "Calibration saved to " << outputFile << std::endl; - - - - /*std::cout << "Rep Error: " << arucoRepErr << std::endl; + std::cout << "Rep Error: " << arucoRepErr << std::endl; cv::FileStorage fs("calibration_results.yaml", cv::FileStorage::WRITE); fs << "cameraMatrix" << cameraMatrix; fs << "distCoeffs" << distCoeffs; - fs.release(); // Release the file*/ + fs.release(); // Release the file return 0; }