Pixel coordinates to 3D line (opencv)

隐身守侯 提交于 2019-12-04 09:57:09

This is a bit old question but still might be usefull for someone. All lines go through the point (0,0,0), so:

line.x0 = 0; line.y0 = 0; line.z0 = 0;

direction vector is as follows: line.A = (u/fx) - (cx/fx); line.B = (v/fy) - (cy/fy); line.C = 1;

cx,cy,fx,fy are parameters from camera matrix. Equations are explained in "Learning OpenCv" book.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!