简体   繁体   English

相机校准和3D重建:比例因子

[英]Camera Calibration and 3D reconstruction: Scaling factor

I am following this documentation: http://docs.opencv.org/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html 我正在遵循此文档: http : //docs.opencv.org/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html

在此处输入图片说明

In the expression above, I have managed to obtain all the matrices except the scaling factor 's'. 在上面的表达式中,我设法获得了除比例因子“ s”以外的所有矩阵。 I am assuming that my object is planar and hence Z = 0. I tried to solve for 's' by substituting a known 2D to 3D map, and I got a value. 我假设我的对象是平面的,因此Z =0。我试图通过用已知的2D到3D映射来求解's',然后得到一个值。 However, this value seems to give me a correct mapping only for some points, and not for all. 但是,此值似乎仅对某些点(而不是对所有点)提供了正确的映射。 Am I doing anything wrong? 我做错什么了吗?

Any help will be appreciated! 任何帮助将不胜感激! Thanks! 谢谢!

Do you know the physical size of the object, and is it the same in all images? 您知道物体的物理尺寸吗,并且在所有图像中都一样吗? Then the scale is exactly one, because you are in a calibrated setup. 然后,由于您处于已校准的设置中,因此秤正好是一个。

If either condition above does not apply, then you cannot recover a physically meaningful scaling factor. 如果以上任一条件均不适用,则您将无法恢复物理上有意义的比例因子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM