cv.stereoCalibrate() 的参数用于计算未失真图像的 R 和 T

发布于 2025-01-13 06:09:40 字数 659 浏览 1 评论 0原文

我正在尝试校准两个不同的相机并获取外部数据。我已经使用cv.cameraCalibrate()来获取两个相机的内在函数,我想使用

cv.stereoCalibrate(objectPoints, imagePoints1, imagePoints2,cameraMatrix1, distCoeffs1,cameraMatrix2, distCoeffs2, imageSize )

获取 RT 矩阵。但现在我不确定这个函数的参数,因为在找到棋盘之前我已经对图像进行了扭曲处理。我应该将 cameraMatrixesdistCoeffs 设置为什么值?

我尝试将它们设置为之前计算的矩阵,但这给出了完全错误的结果。如果我将它们设置为None,它们就在正确的范围内,但不太正确。现在我不确定什么是对或错,以及我之前是否犯了错误。

另外,由于 CALIB_FIX_INTRINSIC 标志已启用,我可以将 imageSize 设置为 None 吗?如果我正确理解文档,则不需要 imageSize ,因为我不想计算内在函数。

非常感谢 :)

i'm trying to calibrate two different cameras and get the extrinsics. I've used cv.cameraCalibrate() to get the intrinsics of both cameras and i want to use

cv.stereoCalibrate(objectPoints, imagePoints1, imagePoints2, cameraMatrix1, distCoeffs1, cameraMatrix2, distCoeffs2, imageSize)

to get the R and T Matrix. But now i am unsure about the parameters to this function since i've undistorted my images before finding the chessboard. What values should i set the cameraMatrixes and the distCoeffs to?

I've tried to set them as the previously calculated matrixes, but that gives completely wrong results. If i set them to None they are in the right ballpark, but not quite right. Now i am unsure what's right or wrong and if i've made a mistake beforehand.

Also, can i set the imageSize to None, since the flag CALIB_FIX_INTRINSIC is enabled? If i understood the documentation correctly, then the imageSize isn't need, because i don't want to calculate the intrinsics.

Thank you very much :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文