From 22d3ded34963e663f289c181aa94b54f00693b34 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 7 Jan 2019 11:01:19 +0100 Subject: tracker/{pt,wii}: allow float/double in cv/numeric --- tracker-pt/module/camera.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tracker-pt/module/camera.h') diff --git a/tracker-pt/module/camera.h b/tracker-pt/module/camera.h index 8abe6cf0..69b2f860 100644 --- a/tracker-pt/module/camera.h +++ b/tracker-pt/module/camera.h @@ -33,13 +33,13 @@ struct Camera final : pt_camera QString get_desired_name() const override; QString get_active_name() const override; - void set_fov(double value) override { fov = value; } + void set_fov(f value) override { fov = value; } void show_camera_settings() override; private: [[nodiscard]] bool get_frame_(cv::Mat& frame); - double dt_mean = 0, fov = 30; + f dt_mean = 0, fov = 30; Timer t; pt_camera_info cam_info; pt_camera_info cam_desired; @@ -56,7 +56,7 @@ private: pt_settings s; - static constexpr inline double dt_eps = 1./256; + static constexpr inline f dt_eps = f{1}/256; }; } // ns pt_module -- cgit v1.2.3