From feb7026316a4f2ad551b4ea87226c264c5277ca4 Mon Sep 17 00:00:00 2001 From: Stéphane Lenclud Date: Sun, 31 Mar 2019 09:40:37 +0200 Subject: 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. --- video/camera.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'video') diff --git a/video/camera.hpp b/video/camera.hpp index 4ad8417c..be9ef711 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; -- cgit v1.2.3