diff options
author | Stéphane Lenclud <github@lenclud.com> | 2019-03-31 09:40:37 +0200 |
---|---|---|
committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-24 18:46:12 +0200 |
commit | feb7026316a4f2ad551b4ea87226c264c5277ca4 (patch) | |
tree | a1f76ac4b525a29b016269c94f9f5758c7ddf940 /video | |
parent | 8141c4f07b1ddc4555d10a78ea5c3f482c8be04f (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.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
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; |