summaryrefslogtreecommitdiffhomepage
path: root/video
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-05-02 19:02:48 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-05-03 04:34:03 +0200
commitf9cf52210ec791f1d913f86bb18a0c42ee930d49 (patch)
treec5a3fe6aa4d8b22fd0ecedbfcd4f7a133aff72f4 /video
parent03092469c8c84e03f9099a0d147217561706a1e8 (diff)
video: store intrinsics as double
Issue: #939
Diffstat (limited to 'video')
-rw-r--r--video/camera.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/video/camera.hpp b/video/camera.hpp
index 250bad36..a0fe0adb 100644
--- a/video/camera.hpp
+++ b/video/camera.hpp
@@ -50,9 +50,9 @@ struct OTR_VIDEO_EXPORT camera
{
// TODO: expose FOV-based focal length for regular webcams
int width = 0, height = 0, fps = 0;
- float fx = 0, fy = 0; // focal length
- float P_x = 0, P_y = 0; // principal point
- float dist_c[8] {}; // distortion coefficients
+ double fx = 0, fy = 0; // focal length
+ double P_x = 0, P_y = 0; // principal point
+ double dist_c[8] {}; // distortion coefficients
};
camera();