P3P

转载地址:https://en.wikipedia.org/wiki/Perspective-n-Point


PnP

Definition[edit]

Given a set of n 3D points in a world reference frame and their corresponding 2D image projections as well as the calibrated intrinsic camera parameters, determine the 6 DOF pose of the camera in the form of its rotation and translation with respect to the world. This follows the perspective project model for cameras:

{\displaystyle s\,p_{c}=K\,[\,R\,|\,T\,]\,p_{w}}{\displaystyle s\,p_{c}=K\,[\,R\,|\,T\,]\,p_{w}}.

where {\displaystyle \textstyle p_{w}={\begin{bmatrix}x&y&z&1\end{bmatrix}}^{T}}{\displaystyle \textstyle p_{w}={\begin{bmatrix}x&y&z&1\end{bmatrix}}^{T}} is the homogeneous world point, {\displaystyle \textstyle p_{c}={\begin{bmatrix}u&v&1\end{bmatrix}}^{T}}{\displaystyle \textstyle p_{c}={\begin{bmatrix}u&v&1\end{bmatrix}}^{T}} is the corresponding homogeneous image point, {\displaystyle \textstyle K}\textstyle K is the matrix of intrinsic camera parameters, (where {\displaystyle \textstyle f_{x}}{\displaystyle \textstyle f_{x}} and {\displaystyle f_{y}}f_y are the scaled focal lengths, {\displaystyle \textstyle \gamma }\textstyle \gamma  is the skew(偏移)parameter which is sometimes assumed to be 0, and {\displaystyle \textstyle (u_{0},\,v_{0})}{\displaystyle \textstyle (u_{0},\,v_{0})}is the principal point), {\displaystyle \textstyle s}\textstyle s is a scale factor for the image point, and {\displaystyle \textstyle R}\textstyle R and {\displaystyle \textstyle T}\textstyle T are the desired 3D rotation and 3D translation of the camera (extrinsic parameters) that are being calculated. This leads to the following equation for the model:

{\displaystyle s{\begin{bmatrix}u\\v\\1\end{bmatrix}}={\begin{bmatrix}f_{x}&\gamma &u_{0}\\0&f_{y}&v_{0}\\0&0&1\end{bmatrix}}{\begin{bmatrix}r_{11}&r_{12}&r_{13}&t_{1}\\r_{21}&r_{22}&r_{23}&t_{2}\\r_{31}&r_{32}&r_{33}&t_{3}\\\end{bmatrix}}{\begin{bmatrix}x\\y\\z\\1\end{bmatrix}}}{\displaystyle s{\begin{bmatrix}u\\v\\1\end{bmatrix}}={\begin{bmatrix}f_{x}&\gamma &u_{0}\\0&f_{y}&v_{0}\\0&0&1\end{bmatrix}}{\begin{bmatrix}r_{11}&r_{12}&r_{13}&t_{1}\\r_{21}&r_{22}&r_{23}&t_{2}\\r_{31}&r_{32}&r_{33}&t_{3}\\\end{bmatrix}}{\begin{bmatrix}x\\y\\z\\1\end{bmatrix}}}.

Assumptions and Data Characteristics


PnP问题的对象是:相机已校正,求相机外参,即R-t;

UPnP 和 Direct Linear Transform (DLT)它们是针对projection model,即不仅估计相机外参,而且估计相机内参。


For each solution to PnP, the chosen point correspondences cannot be coplanar.( 一个3D点和其对应的 2D点构成一条直线,PnP中将来会有n条直线。如果要成为PnP的解,这n条直线不能共面,这为选择3D特征点提供了依据,这句话应该是这个意思。)

 In addition, PnP can have multiple solutions, and choosing a particular solution would require post-processing of the solution set. Furthermore, using more point correspondences can reduce the impact of noisy data when solving PnP. RANSAC is also commonly used with a PnP method to make the solution robust to outliers in the set of point correspondences.



一篇介绍P3P很好的博客:http://iplimage.com/blog/p3p-perspective-point-overview/

EPnP 结合  http://www.cnblogs.com/jian-li/p/5689122.html  和EPnP原始的论文  Accurate Non-Iterative O( n) Solution to the PnP Problem 理解 EPnP的基本思想,很多细节还不是清楚,自己阅读论文时,在论文上做的一些疑问


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值