stereoRectify 中的 Q marix
Q marix in stereoRectify
我读过"learning opencv",我知道使用Q矩阵,我们可以连接图像坐标和3D坐标。
但是我不太确定 Q 矩阵中的 'f' 指的是什么?在书中,'f'在我的程序中是焦点length.But,我发现f=700.Did我的程序错误?
提前感谢您的帮助。
摄影中的焦距以米为单位表示,例如35 mm
或105 mm
。
在 OpenCV 中,焦距以 pixel/meter 单位表示,以便将以米为单位的坐标转换为以像素为单位的坐标,如下所示:
Camera Calibration and 3D Reconstruction.
公式为:
x' = x/z
(x' in meter in the normalized coordinate camera frame)
y' = y/z
(y' in meter in the normalized coordinate camera frame)
u = fx * x' + cx
(u in pixel in the image frame)
v = fy * y' + cy
(v in pixel in the image frame)
我读过"learning opencv",我知道使用Q矩阵,我们可以连接图像坐标和3D坐标。 但是我不太确定 Q 矩阵中的 'f' 指的是什么?在书中,'f'在我的程序中是焦点length.But,我发现f=700.Did我的程序错误? 提前感谢您的帮助。
摄影中的焦距以米为单位表示,例如35 mm
或105 mm
。
在 OpenCV 中,焦距以 pixel/meter 单位表示,以便将以米为单位的坐标转换为以像素为单位的坐标,如下所示: Camera Calibration and 3D Reconstruction.
公式为:
x' = x/z
(x' in meter in the normalized coordinate camera frame)
y' = y/z
(y' in meter in the normalized coordinate camera frame)
u = fx * x' + cx
(u in pixel in the image frame)
v = fy * y' + cy
(v in pixel in the image frame)