gpt4 book ai didi

opengl - 如何从相机内在矩阵计算相机的视野?

转载 作者:行者123 更新时间:2023-12-04 10:23:50 26 4
gpt4 key购买 nike

我使用相机校准获得了相机内在矩阵和失真参数。

我猜焦距的单位是像素。

那么,我如何计算视野(沿 y)?

这个公式对吗?

double fov_y = 2*atan(height/2/fy)*180/CV_PI;

我将使用它的参数
gluPerspective()

最佳答案

OpenCV 有一个 function这样做。查看实现(可在 GitHub 上获得),我们给出了一个尺寸为 w x h 的图像和一个相机矩阵:

camera intrinsic matrix

视场方程为:

field of view y field of view x

关于opengl - 如何从相机内在矩阵计算相机的视野?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39992968/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com