# 相对位姿估计

相对位姿估计是一种计算机视觉方法，它通过两幅图像之间的对应关系来确定一个相机相对于另一个相机的旋转和平移方向。仅从点对应关系出发，相对位姿六个自由度中只有五个是可恢复的：三个旋转参数和平移方向的两个参数，因为相机中心之间的距离无法被观测到。<sup>[1](https://www.ipb.uni-bonn.de/html/teaching/msr2-2020/sse2-16-fundamental-essential.pdf)</sup><sup> • </sup><sup>[2](https://arxiv.org/html/2211.14950v2)</sup> 该方法是运动恢复结构和SLAM的基础，在以平移为主、深度变化的场景中表现最佳，而这正是此类应用的典型场景。<sup>[3](https://nanolithography.spiedigitallibrary.org/journalArticle/Download?urlId=10.1117%2F1.JEI.34.4.043047)</sup>

| 关键事实 | 详情 |
|---|---|
| 输出 | 旋转（3个参数）加平移方向（2个参数）；从两视图无法观测尺度<sup>[1](https://www.ipb.uni-bonn.de/html/teaching/msr2-2020/sse2-16-fundamental-essential.pdf)</sup> |
| 核心对象 | 本质矩阵 \( E = [t]_{\times} \cdot R \)，具有5个自由度<sup>[4](https://vnav.mit.edu/material/14-2viewGeometry-notes.pdf)</sup> |
| 最小数据 | 两个已标定相机的5组点对应，最多产生10个本质矩阵解<sup>[5](https://dl.acm.org/doi/10.1109/TPAMI.2004.17)</sup><sup> • </sup><sup>[6](https://users.cecs.anu.edu.au/~hongdong/new5pt_cameraREady_ver_1.pdf)</sup> |
| 消歧 | 四个候选位姿，通常由正深度（手性）约束解决<sup>[7](https://www.seas.upenn.edu/~cis580/lectures/E-matrix_chapter.pdf)</sup> |
| 提高实际精度的关键 | 坐标归一化；若不归一化，8点法的误差可达10像素<sup>[8](https://users.cecs.anu.edu.au/~hartley/Papers/fundamental/fundamental.pdf)</sup> |
| 鲁棒性 | RANSAC既能剔除离群点，又能稳定不稳定的最小假设<sup>[9](https://openaccess.thecvf.com/content/CVPR2022/papers/Fan_On_the_Instability_of_Relative_Pose_Estimation_and_RANSACs_Role_CVPR_2022_paper.pdf)</sup> |

## 工作原理

同一组点在两个已标定视图中的成像由对极约束相联系：对于对应图像点 \( x_{1} \) 和 \( x_{2} \)，有 \( x_{2}^{\top} \cdot [t]_{\times} \cdot R \cdot x_{1} = 0 \)，其中 \( [t]_{\times} \) 是平移向量的反对称矩阵，\( R \) 是相对旋转。矩阵 \( E = [t]_{\times} \cdot R \) 即本质矩阵，该约束对图像点是双线性的。<sup>[4](https://vnav.mit.edu/material/14-2viewGeometry-notes.pdf)</sup><sup> • </sup><sup>[7](https://www.seas.upenn.edu/~cis580/lectures/E-matrix_chapter.pdf)</sup> 由于 \( E \) 是齐次的，它在射影空间中具有5个自由度：其矩阵锥在3×3矩阵的9维空间中维度为6，余维数为3，由 \( \det(E) = 0 \) 和 \( 2 E E^{\top} E - \mathrm{tr}(E E^{\top}) E = 0 \) 刻画。<sup>[6](https://users.cecs.anu.edu.au/~hongdong/new5pt_cameraREady_ver_1.pdf)</sup><sup> • </sup><sup>[1](https://www.ipb.uni-bonn.de/html/teaching/msr2-2020/sse2-16-fundamental-essential.pdf)</sup> 等价地说，本质矩阵有两个相等的奇异值和一个零奇异值。<sup>[7](https://www.seas.upenn.edu/~cis580/lectures/E-matrix_chapter.pdf)</sup>

分解并不唯一。对非零本质矩阵进行分解会得到四个候选相对位姿，通常由两个相差 \( R_{z}(\pm\pi/2) \) 的旋转与平移方向的两种符号组合而成，这一集合常被称为扭对。<sup>[7](https://www.seas.upenn.edu/~cis580/lectures/E-matrix_chapter.pdf)</sup><sup> • </sup><sup>[4](https://vnav.mit.edu/material/14-2viewGeometry-notes.pdf)</sup> 在理想的非退化情况下，只有一个候选位姿能使所有重建点位于两个相机前方，即手性或正深度约束，通过对每个候选位姿进行三角化来检验，尽管在实践中该检验未必能唯一地消除估计的歧义。<sup>[10](https://courses.cs.duke.edu/spring20/compsci527/notes/longuet-higgins.pdf)</sup> 实践中，仅凭手性并不总能做出判定，因为许多候选估计都能使所有点位于两个相机前方；据报道，对五个最小点进行手性检验并结合所有对应上的Sampson距离，是在鲁棒性、精度和计算量之间的最佳折衷。<sup>[11](https://www.isprs.org/proceedings/XXXVII/congress/3b_pdf/25.pdf)</sup>

## 实现方法

标准流程如下<sup>[12](https://www.uio.no/studier/emner/matnat/its/TEK5030/v26/lectures/11-two-view-geometry/pose-from-epipolar-geometry_2023.pdf)</sup>：

1. 建立图像间的对应关系，通常是特征匹配。
2. 鲁棒地估计本质矩阵，通常在RANSAC循环内进行。
3. 将 \( E \) 分解为四个候选位姿。
4. 对每个候选位姿至少三角化一个3D点，选择满足手性约束的位姿。

对于估计步骤，最小标定求解器使用五个点。Nistér的算法以闭式形式计算十次多项式的系数并求其根，最多给出十个 \( E \) 的实数解。<sup>[5](https://dl.acm.org/doi/10.1109/TPAMI.2004.17)</sup><sup> • </sup><sup>[9](https://openaccess.thecvf.com/content/CVPR2022/papers/Fan_On_the_Instability_of_Relative_Pose_Estimation_and_RANSACs_Role_CVPR_2022_paper.pdf)</sup> 用于未标定相机的7点法从三次多项式的实根中获得解，8点法则求解由至少八组对应构建的线性系统。<sup>[9](https://openaccess.thecvf.com/content/CVPR2022/papers/Fan_On_the_Instability_of_Relative_Pose_Estimation_and_RANSACs_Role_CVPR_2022_paper.pdf)</sup><sup> • </sup><sup>[4](https://vnav.mit.edu/material/14-2viewGeometry-notes.pdf)</sup>

两个数值步骤至关重要。第一，归一化——平移并各向同性地缩放点，使质心位于原点、到原点的平均距离为 \( \sqrt{2} \)——能极大地改善条件数；若不归一化，8点算法的误差可高达10像素，而归一化后该算法的性能几乎与最佳迭代方法相当，运行速度却快约20倍。<sup>[8](https://users.cecs.anu.edu.au/~hartley/Papers/fundamental/fundamental.pdf)</sup> 第二，在测量有噪声时，线性解并非精确的本质矩阵，因此通过奇异值分解将其投影到本质空间，即将 \( E = U \cdot \Sigma \cdot V^{\top} \) 替换为 \( U \cdot \mathrm{diag}(1, 1, 0) \cdot V^{\top} \)。<sup>[13](https://pages.github.berkeley.edu/EECS-106/sp22-site/assets/scribe_notes/scribe_lec_7B.pdf)</sup><sup> • </sup><sup>[4](https://vnav.mit.edu/material/14-2viewGeometry-notes.pdf)</sup>

RANSAC的作用不止于剔除离群点。最小五点和七点假设通常对噪声不稳定：在一项真实数据研究中，随机内点最小样本中只有约50%是良态的，但RANSAC获胜假设中约90%是良态的，因为RANSAC在给假设打分时整合了未被选中的对应关系。<sup>[9](https://openaccess.thecvf.com/content/CVPR2022/papers/Fan_On_the_Instability_of_Relative_Pose_Estimation_and_RANSACs_Role_CVPR_2022_paper.pdf)</sup>

## 起源

八点法引出了用于标定相机的6点法和5点法。<sup>[14](https://www.bmva-archive.org.uk/bmvc/2013/Papers/paper0116/paper0116.pdf)</sup> Richard Hartley于1997年提出了用于未标定相机的归一化8点算法。<sup>[8](https://users.cecs.anu.edu.au/~hartley/Papers/fundamental/fundamental.pdf)</sup> J. Philip于1996年在《摄影测量记录》上发表了一种非迭代的五点算法，通过13次多项式求解。<sup>[15](https://doi.org/10.1111/0031-868x.00066)</sup><sup> • </sup><sup>[14](https://www.bmva-archive.org.uk/bmvc/2013/Papers/paper0116/paper0116.pdf)</sup> D. Nistér于2004年在《IEEE模式分析与机器智能汇刊》上将其改进，把多项式降至10次。<sup>[16](https://doi.org/10.1109/tpami.2004.17)</sup><sup> • </sup><sup>[14](https://www.bmva-archive.org.uk/bmvc/2013/Papers/paper0116/paper0116.pdf)</sup>

## 变体

**求解器族。** 在共享焦距未知的情况下，六组对应构成一个一般有15个解的最小问题，通过15×15矩阵的特征分解求得。<sup>[17](https://www.robots.ox.ac.uk/~vgg/publications/2005/Stewenius05/stewenius05.pdf)</sup> 对于多相机装置，五个点不再足够：广义相机射线不经过共同的投影中心，因此平移尺度变得可观测，需要六个点；广义6点问题一般有64个解。<sup>[18](https://people.inf.ethz.ch/pomarc/pubs/sm26gen.pdf)</sup><sup> • </sup><sup>[19](https://link.springer.com/article/10.1007/s11263-025-02531-2)</sup> 陀螺仪辅助求解器利用已知的相对旋转角，对于常规标定相机仅需四组点对应，且避免了相机到陀螺仪的外参标定。<sup>[20](https://link.springer.com/article/10.1007/s10851-020-00958-5)</sup> 仿射对应支持从26组点对应或9组仿射对应中恢复尺度、3D朝向和平移的求解器。<sup>[21](https://dl.acm.org/doi/10.1007/s11263-025-02452-0)</sup>

**深度感知与学习型变体。** 利用单目深度估计，一组点对应提供两个约束，因此标定的5自由度问题可由三组点对应和两个相对深度求解；学习到的深度有噪声且通常具有尺度或仿射不变性，这些求解器必须加以适应。<sup>[22](https://arxiv.org/html/2501.07742v2)</sup> LightGlue等学习型匹配器为这些流程提供对应关系<sup>[23](https://doi.org/10.48550/arxiv.2306.13643)</sup>，而8点ViT将8点算法作为归纳偏置嵌入视觉Transformer中，用双线性注意力、二次位置编码和双重软最大函数近似 \( U^{\top} U \) 的计算，直接回归带尺度的旋转和平移。<sup>[24](https://doi.org/10.48550/arxiv.2208.08988)</sup>

## 应用

在运动恢复结构中，相对位姿解通常用于初始化光束法平差，后者细化运动和结构以最小化图像重投影误差。<sup>[10](https://courses.cs.duke.edu/spring20/compsci527/notes/longuet-higgins.pdf)</sup> 对比实验发现，本质矩阵方法在以平移为主、深度变化的环境中更优，使其非常适合SLAM和机器人导航，而基于单应的方法适合平面跟踪。<sup>[3](https://nanolithography.spiedigitallibrary.org/journalArticle/Download?urlId=10.1117%2F1.JEI.34.4.043047)</sup>

## 局限与替代方案

**退化。** 纯旋转会使本质矩阵方法出现数值病态，因为缺乏视差；在一项基准测试中，本质矩阵方法在纯旋转下失败，而基于单应的方法保持稳定，旋转均方根误差在6.1到6.3度之间。<sup>[25](https://www.mdpi.com/1424-8220/19/8/1905)</sup><sup> • </sup><sup>[3](https://nanolithography.spiedigitallibrary.org/journalArticle/Download?urlId=10.1117%2F1.JEI.34.4.043047)</sup> 对于平面场景，无法从对应关系估计[对极几何](https://www.edgepedia.org/zh/epipolar-geometry)，近似平面的场景很可能病态；平面情形应改用4点单应估计与分解。<sup>[12](https://www.uio.no/studier/emner/matnat/its/TEK5030/v26/lectures/11-two-view-geometry/pose-from-epipolar-geometry_2023.pdf)</sup><sup> • </sup><sup>[13](https://pages.github.berkeley.edu/EECS-106/sp22-site/assets/scribe_notes/scribe_lec_7B.pdf)</sup> 8点算法存在前向偏置，导致不希望的相机运动，而超定的5点和8点变体在使用超过最小数量的点时精度反而下降；在真实数据上，旋转的估计比平移更可靠。<sup>[11](https://www.isprs.org/proceedings/XXXVII/congress/3b_pdf/25.pdf)</sup>

**噪声敏感性。** 在噪声条件下，基于单应的方法比本质矩阵或相对朝向方法更精确，且经典流程对重复结构或光照差异引起的匹配误差仍然敏感。<sup>[25](https://www.mdpi.com/1424-8220/19/8/1905)</sup><sup> • </sup><sup>[2](https://arxiv.org/html/2211.14950v2)</sup>

**尺度与学习型替代方案。** 不可约的尺度模糊意味着经典流程只能恢复六个位姿自由度中的五个。<sup>[2](https://arxiv.org/html/2211.14950v2)</sup> 深度位姿回归可以利用物体尺寸的先验恢复相机距离，但当前深度方法在许多设置下尚不如经典方法精确，且在跨场景泛化方面存在困难。<sup>[2](https://arxiv.org/html/2211.14950v2)</sup> 可认证优化提供了“先估计后消歧”流程的替代方案：C2P方法（CVPR 2024）通过半定规划求解一个含18个参数和15个二次约束的非最小形式，具有可认证的全局最优性，并绕过了事后手性消歧；松弛变量 \( s_{t}^{2} \) 还可通过阈值化标记接近纯旋转的情形。<sup>[26](https://openaccess.thecvf.com/content/CVPR2024/papers/Tirado-Garin_From_Correspondences_to_Pose_Non-minimal_Certifiably_Optimal_Relative_Pose_without_CVPR_2024_paper.pdf)</sup> 结合Black-Rangarajan对偶的渐进非凸方法在精度上优于基于RANSAC的策略，并能容忍更高比例的离群点。<sup>[27](https://arxiv.org/pdf/2101.08524v2.pdf)</sup>

## References

1. [Relative Orientation, Fundamental and Essential Matrix (Förstner/Wrobel lecture notes, Univ. Bonn)](https://www.ipb.uni-bonn.de/html/teaching/msr2-2020/sse2-16-fundamental-essential.pdf)
2. [Leveraging Image Matching Toward End-to-End Relative Camera Pose Regression (arXiv)](https://arxiv.org/html/2211.14950v2)
3. [Comparative analysis of relative motion estimation errors under varying motion scenarios (Journal of Electronic Imaging, 2025)](https://nanolithography.spiedigitallibrary.org/journalArticle/Download?urlId=10.1117%2F1.JEI.34.4.043047)
4. [Lecture 14: 2-view Geometry (MIT VNAV course notes)](https://vnav.mit.edu/material/14-2viewGeometry-notes.pdf)
5. [An Efficient Solution to the Five-Point Relative Pose Problem (Nistér, IEEE TPAMI)](https://dl.acm.org/doi/10.1109/TPAMI.2004.17)
6. [Five-Point Motion Estimation Made Easy (Li & Hartley)](https://users.cecs.anu.edu.au/~hongdong/new5pt_cameraREady_ver_1.pdf)
7. [An Invitation to 3-D Vision, Chapter 5 (Ma, Soatto, Kosecka, Sastry), Essential matrix and eight-point algorithm](https://www.seas.upenn.edu/~cis580/lectures/E-matrix_chapter.pdf)
8. [In Defence of the 8-point Algorithm (Hartley)](https://users.cecs.anu.edu.au/~hartley/Papers/fundamental/fundamental.pdf)
9. [On the Instability of Relative Pose Estimation and RANSAC's Role (CVPR 2022)](https://openaccess.thecvf.com/content/CVPR2022/papers/Fan_On_the_Instability_of_Relative_Pose_Estimation_and_RANSACs_Role_CVPR_2022_paper.pdf)
10. [The Eight-Point Algorithm (course notes, Duke COMPSCI 527)](https://courses.cs.duke.edu/spring20/compsci527/notes/longuet-higgins.pdf)
11. [Evaluation of Relative Pose Estimation Methods for Multi-Camera Setups (ISPRS Congress)](https://www.isprs.org/proceedings/XXXVII/congress/3b_pdf/25.pdf)
12. [Pose from epipolar geometry (University of Oslo TEK5030 lecture)](https://www.uio.no/studier/emner/matnat/its/TEK5030/v26/lectures/11-two-view-geometry/pose-from-epipolar-geometry_2023.pdf)
13. [Lecture 7B: Two-View Geometry, Calibration (UC Berkeley EECS 106 scribe notes)](https://pages.github.berkeley.edu/EECS-106/sp22-site/assets/scribe_notes/scribe_lec_7B.pdf)
14. [An Iterative 5-pt Algorithm for Fast and Robust Essential Matrix Estimation (BMVC 2013)](https://www.bmva-archive.org.uk/bmvc/2013/Papers/paper0116/paper0116.pdf)
15. [J. Philip (1996). A Non‐Iterative Algorithm for Determining All Essential Matrices Corresponding to Five Point Pairs. The Photogrammetric Record.](https://doi.org/10.1111/0031-868x.00066)
16. [D. Nister (2004). An efficient solution to the five-point relative pose problem. IEEE Transactions on Pattern Analysis and Machine Intelligence.](https://doi.org/10.1109/tpami.2004.17)
17. [A Minimal Solution for Relative Pose with Unknown Focal Length (Stewénius et al., 2005)](https://www.robots.ox.ac.uk/~vgg/publications/2005/Stewenius05/stewenius05.pdf)
18. [Solutions to Minimal Generalized Relative Pose Problems (Stewénius, Nistér, Oskarsson, Åström)](https://people.inf.ethz.ch/pomarc/pubs/sm26gen.pdf)
19. [Six-Point Method for Multi-Camera Systems with Reduced Solution Space (IJCV 2025)](https://link.springer.com/article/10.1007/s11263-025-02531-2)
20. [Efficient Relative Pose Estimation for Cameras and Generalized Cameras in Case of Known Relative Rotation Angle (Martyushev & Li, 2020)](https://link.springer.com/article/10.1007/s10851-020-00958-5)
21. [Generalized Relative Pose and Scale from Affine Correspondences (IJCV, 2025)](https://dl.acm.org/doi/10.1007/s11263-025-02452-0)
22. [RePoseD: Efficient Relative Pose Estimation With Known Depth Information (arXiv 2025 / ICCV 2025)](https://arxiv.org/html/2501.07742v2)
23. [Lindenberger, Philipp, Sarlin, Paul-Edouard, Pollefeys, Marc (2023). LightGlue: Local Feature Matching at Light Speed. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2306.13643)
24. [Rockwell, Chris, Johnson, Justin, Fouhey, David F. (2022). The 8-Point Algorithm as an Inductive Bias for Relative Pose Prediction by ViTs. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2208.08988)
25. [Comparative Study of Relative-Pose Estimations from a Monocular Image Sequence in Computer Vision and Photogrammetry (Sensors, MDPI)](https://www.mdpi.com/1424-8220/19/8/1905)
26. [From Correspondences to Pose: Non-minimal Certifiably Optimal Relative Pose without Disambiguation (C2P, CVPR 2024)](https://openaccess.thecvf.com/content/CVPR2024/papers/Tirado-Garin_From_Correspondences_to_Pose_Non-minimal_Certifiably_Optimal_Relative_Pose_without_CVPR_2024_paper.pdf)
27. [Fast and Robust Certifiable Estimation of the Relative Pose Between Two Calibrated Cameras (arXiv:2101.08524)](https://arxiv.org/pdf/2101.08524v2.pdf)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026; Oct 21, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › 语言与视觉人工智能 › 计算机视觉 › 视觉方法与几何 › 姿态估计与姿态跟踪

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/relative-pose-estimation

English original: https://www.edgepedia.org/relative-pose-estimation
