@snuffles
2019-04-17T17:44:09.000000Z
字数 2759
阅读 1211
SLAM
@last update: 4.16
EPNP
According to the paper:EPNP,complete the EPNP functions.
Lepetit V, Moreno-Noguer F, Fua P. Epnp: An accurate o (n) solution to the pnp problem[J]. International journal of computer vision, 2009, 81(2): 155.
Including
to be Submitted
✅ 环境配置 cmake,opencv343,eigen
✅ feature extraction, matching
✅ opencv solver,eigen solver
✅ 原理总结,画图
todo: gtest,
result: 从打印结果R,T看,两种解法求出的相机姿态基本相同
根据3D参考点和对应2D的点,估计相机姿态
(the estimation of the pose of a calibrated camera from n 3D-to-2D point correspondences )
输入:
N个世界坐标系中的3D参考点坐标
3D点对应的2d参考点坐标
相机内参K
输出:
相机位姿
用四个控制点的权重和来表示参考点
(express the n 3D points as a weighted sum of four virtual control points
)
世界坐标系下3D参考点
3D参考点在像素平面的投影为,为相机内参矩阵,是尺度系数
特征值的个数不是固定的,EPNP计算四种情况1-4,选择重投影误差最小的那种情况,其中dist是像素平面上点,和重投影点齐次坐标的2D距离。