From b69a97bef356ee2f0e431753a5163e7dc5ba8029 Mon Sep 17 00:00:00 2001 From: ozantonkal Date: Mon, 12 Aug 2013 09:07:50 +0200 Subject: [PATCH] access focal length and principal point in camera --- modules/viz/include/opencv2/viz/types.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/viz/include/opencv2/viz/types.hpp b/modules/viz/include/opencv2/viz/types.hpp index 54b47140e..f41b5fa0f 100644 --- a/modules/viz/include/opencv2/viz/types.hpp +++ b/modules/viz/include/opencv2/viz/types.hpp @@ -111,6 +111,9 @@ namespace cv inline const Vec2f & getFov() const { return fov_; } inline void setFov(const Vec2f & fov) { fov_ = fov; } + inline const Vec2f & getPrincipalPoint() const { return principal_point_; } + inline const Vec2f & getFocalLength() const { return focal_; } + void computeProjectionMatrix(Matx44f &proj) const; static Camera KinectCamera(const Size &window_size);