summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/module/camera.h
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-pt/module/camera.h')
-rw-r--r--tracker-pt/module/camera.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tracker-pt/module/camera.h b/tracker-pt/module/camera.h
index f8f140de..2ea633d0 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);
+ [[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 f dt_eps = f{1}/256;
};
} // ns pt_module