如何从相机固有矩阵计算相机的视野? [英] how to calculate field of view of the camera from camera intrinsic matrix?
本文介绍了如何从相机固有矩阵计算相机的视野?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用相机校准获得了相机固有矩阵和失真参数.
我猜焦距的单位是像素.
那么,我如何计算视野(沿 y)?
这个公式对吗?
double fov_y = 2*atan(height/2/fy)*180/CV_PI;
我会用它来做参数
gluPerspective()
解决方案
OpenCV 有一个
视野方程为:
I got camera intrinsic matrix and distortion parameters using camera calibration.
The unit of the focal length is pixels, i guess.
Then, how can i calculate field of view (along y) ?
Is this formula right?
double fov_y = 2*atan(height/2/fy)*180/CV_PI;
I'll use it to parameters of
gluPerspective()
解决方案
OpenCV has a function that does this. Looking at the implementation (available on GitHub) we have given an image with dimensions w x h and a camera matrix:
the equations for the field of view are:
这篇关于如何从相机固有矩阵计算相机的视野?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文