问题描述
我正在尝试获取用于三角测量的 3x4 相机矩阵,但是calibrateCamera()
仅返回 3x3 和 4x1 矩阵.
I am trying to get a 3x4 camera matrix for triangulation process but calibrateCamera()
returns only 3x3 and 4x1 matrices.
如何从这些矩阵中提取 3x4 ?
How can i get the 3x4 out of those matrices?
提前谢谢!
推荐答案
calibrateCamera()返回您
3x3矩阵作为cameraMatrix,
作为distCoeffs的4x1矩阵,和rvecs和tvecs分别是3x1旋转矩阵和3x1变换矩阵的向量.
calibrateCamera() returns you
a 3x3 matrix as cameraMatrix,
a 4x1 matrix as distCoeffs,and rvecs and tvecs that are vectors of 3x1 rotation(R) and 3x1 transformation(t) matrices.
您想要的是ProjectionMatrix,将[cameraMatrix]乘以[R | t].
What you want is ProjectionMatrix, which is multiply [cameraMatrix] by [R|t].
因此,它将为您提供一个3x4 ProjectionMatrix.
您可以阅读 OpenCV文档以获取更多信息.
Therefore, it returs you a 3x4 ProjectionMatrix.
You can read OpenCV documentation for more info.
这篇关于我如何从calibrateCamera()返回值中获取相机投影矩阵的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!