diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-20 22:43:50 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-20 23:24:13 +0200 |
commit | 8faba81716c5d4283a31262dea795888cdb372b0 (patch) | |
tree | 6814b0261264d6f1b3996f96e45e12cbc548b1e4 /tracker-pt/camera.h | |
parent | c28efa181dc302489ff5bd1bb2f7d2d5d88bfd92 (diff) |
tracker/pt: use doubles
We don't have pt_types namespace on this branch so hardcode
using double instead.
Diffstat (limited to 'tracker-pt/camera.h')
-rw-r--r-- | tracker-pt/camera.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tracker-pt/camera.h b/tracker-pt/camera.h index d0dfdd84..f82c74a6 100644 --- a/tracker-pt/camera.h +++ b/tracker-pt/camera.h @@ -40,7 +40,7 @@ public: void set_res(int x_res, int y_res); // gets a frame from the camera, dt: time since last call in seconds - bool get_frame(float dt, cv::Mat* frame); + bool get_frame(double dt, cv::Mat* frame); // WARNING: returned references are valid as long as object bool get_info(CamInfo &ret); @@ -55,8 +55,7 @@ protected: virtual void _set_fps() = 0; virtual void _set_res() = 0; private: - float dt_valid; - float dt_mean; + double dt_valid, dt_mean; protected: int desired_index; int active_index; |