简体   繁体   English

将图像中的二维点(带透视)转换为 3D 世界坐标

[英]Convert 2D point in image(with perspective) to 3D world coordinate

I want to convert a given pixel point P1 (u,v) to a 3D world coordinate (x,y), the problem is that the plane is not vertically aligned to the camera lens which introduces the perspective problem.我想将给定的像素点 P1 (u,v) 转换为 3D 世界坐标 (x,y),问题是平面未垂直对齐相机镜头,从而引入了透视问题。

I've calibrated my camera and retrieved the extrinsic and intrinsic parameters, moreover, I also know the height on which the camera is mounted on.我已经校准了我的相机并检索了外在和内在参数,此外,我还知道相机安装的高度。

If the plane would have been vertically aligned with the camera lens, I would simply have used the pin-hole camera model to retrieve the x,y coordinate:如果平面与相机镜头垂直对齐,我只需使用针孔相机 model 来检索 x,y 坐标:

X = Z / fx * (u - cx)
Y = Z / fy * (v - cy)
[Z = D]

But since I've mounted the camera with an angle to the plane, this is not true anymore.但由于我已经将相机安装在与飞机成一定角度的位置,这不再是真的了。 So what method can be used to solve the problem with the given info?那么可以使用什么方法来解决给定信息的问题呢?

I found a solution to the answer here: https://dsp.stackexchange.com/a/46591/46122我在这里找到了答案的解决方案: https://dsp.stackexchange.com/a/46591/46122

I also successfully solved it by using the method mentioned here: Computing x,y coordinate (3D) from image point我还通过使用此处提到的方法成功解决了它: Computing x,y coordinate (3D) from image point

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

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