summaryrefslogtreecommitdiffhomepage
path: root/video
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-03-31 09:40:37 +0200
committerStéphane Lenclud <github@lenclud.com>2019-04-12 21:04:36 +0200
commit014044c8b1c563add79e96b174c29933b17bdc95 (patch)
treea6e347e1cb46d4cbdd2ed35eaee7d6d2fd05aa7b /video
parent8fb094f6a4ab862208fb7289312b0dd47e6f9a47 (diff)
First solveP3P results that are looking consistent.
Translation vector in meters seems to be spot on. Rotation angles still need to be computed. Radial distortion still need to be taken into account.
Diffstat (limited to 'video')
-rw-r--r--video/camera.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/video/camera.hpp b/video/camera.hpp
index 4ad8417cf..be9ef7119 100644
--- a/video/camera.hpp
+++ b/video/camera.hpp
@@ -49,12 +49,19 @@ struct OTR_VIDEO_EXPORT camera
struct info final
{
int width = 0, height = 0, fps = 0;
+ float focalLengthX = 0.0f;
+ float focalLengthY = 0.0f;
+ float principalPointX = 0.0f;
+ float principalPointY = 0.0f;
+ float radialDistortionSecondOrder = 0.0f;
+ float radialDistortionFourthOrder = 0.0f;
+ float radialDistortionSixthOrder = 0.0f;
};
camera();
virtual ~camera();
- [[nodiscard]] virtual bool start(const info& args) = 0;
+ [[nodiscard]] virtual bool start(info& args) = 0;
virtual void stop() = 0;
virtual bool is_open() = 0;