From f128b1de42cf8b2d9b50f57561a205073b9e250d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 3 Jun 2018 15:48:29 +0200 Subject: switch to structured bindings --- tracker-pt/ftnoir_tracker_pt_dialog.cpp | 4 +--- tracker-pt/module/frame.cpp | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'tracker-pt') diff --git a/tracker-pt/ftnoir_tracker_pt_dialog.cpp b/tracker-pt/ftnoir_tracker_pt_dialog.cpp index 5bd1a4c8..9073907d 100644 --- a/tracker-pt/ftnoir_tracker_pt_dialog.cpp +++ b/tracker-pt/ftnoir_tracker_pt_dialog.cpp @@ -153,9 +153,7 @@ void TrackerDialog_PT::startstop_trans_calib(bool start) calib_timer.stop(); qDebug() << "pt: stopping translation calibration"; { - cv::Vec3f tmp; - cv::Vec3i nsamples; - std::tie(tmp, nsamples) = trans_calib.get_estimate(); + auto [tmp, nsamples] = trans_calib.get_estimate(); s.t_MH_x = int(tmp[0]); s.t_MH_y = int(tmp[1]); s.t_MH_z = int(tmp[2]); diff --git a/tracker-pt/module/frame.cpp b/tracker-pt/module/frame.cpp index e403af07..f54c2e36 100644 --- a/tracker-pt/module/frame.cpp +++ b/tracker-pt/module/frame.cpp @@ -57,9 +57,7 @@ QImage Preview::get_bitmap() void Preview::draw_head_center(double x, double y) { - double px_, py_; - - std::tie(px_, py_) = to_pixel_pos(x, y, frame_copy.cols, frame_copy.rows); + auto [px_, py_] = to_pixel_pos(x, y, frame_copy.cols, frame_copy.rows); int px = iround(px_), py = iround(py_); -- cgit v1.2.3