From 276b6b72e3ee5d82caf69bc0d5debadbb41385ea Mon Sep 17 00:00:00 2001
From: Sebastian Hahta <joseha@utu.fi>
Date: Fri, 28 Jun 2019 11:25:55 +0300
Subject: [PATCH] closes #110

---
 applications/calibration/src/common.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/applications/calibration/src/common.cpp b/applications/calibration/src/common.cpp
index 28b6f442b..c68f105e1 100644
--- a/applications/calibration/src/common.cpp
+++ b/applications/calibration/src/common.cpp
@@ -33,12 +33,12 @@ bool hasOption(const map<string, string> &options, const string &opt) {
 
 int getOptionInt(const map<string, string> &options, const string &opt, int default_value) {
 	if (!hasOption(options, opt)) return default_value;
-	return std::stoi(getOption(options, opt));
+	return std::stoi(options.at(opt));
 }
 
 double getOptionDouble(const map<string, string> &options, const string &opt, double default_value) {
 	if (!hasOption(options, opt)) return default_value;
-	return std::stod(getOption(options, opt));
+	return std::stod(options.at(opt));
 }
 
 string getOptionString(const map<string, string> &options, const string &opt, string default_value) {
@@ -181,8 +181,8 @@ CalibrationChessboard::CalibrationChessboard(const map<string, string> &opt) {
 	pattern_square_size_ = getOptionDouble(opt, "square_size", 36.0);
 
 	LOG(INFO) << "Chessboard calibration parameters";
-	LOG(INFO) << "         rows: " << pattern_size_.width;
-	LOG(INFO) << "         cols: " << pattern_size_.height;
+	LOG(INFO) << "         rows: " << pattern_size_.height;
+	LOG(INFO) << "         cols: " << pattern_size_.width;
 	LOG(INFO) << "        width: " << image_size_.width;
 	LOG(INFO) << "       height: " << image_size_.height;
 	LOG(INFO) << "  square_size: " << pattern_square_size_;
-- 
GitLab