如何从相机固有矩阵计算相机的视场? [英] how to calculate field of view of the camera from camera intrinsic matrix?
本文介绍了如何从相机固有矩阵计算相机的视场?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我通过相机校准得到了相机固有矩阵和失真参数.
I got camera intrinsic matrix and distortion parameters using camera calibration.
我想,焦距的单位是像素.
The unit of the focal length is pixels, i guess.
然后,如何计算视场(沿y)?
Then, how can i calculate field of view (along y) ?
这个公式对吗?
double fov_y = 2*atan(height/2/fy)*180/CV_PI;
我将其用作
gluPerspective()
推荐答案
OpenCV具有功能可以做到这一点.查看实施情况(可在 GitHub )我们给出了一张尺寸为wxh的图像和一个相机矩阵:
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:
视野的等式是:
这篇关于如何从相机固有矩阵计算相机的视场?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文