# 广义迭代最近点

**广义迭代最近点**（Generalized iterative closest point，GICP）是迭代最近点（iterative closest point，ICP）算法的一种概率变体，用于对齐两个点云。在该方法中，每个测量点被建模为底层局部平面表面的一个高斯采样，变换则通过最大似然估计。该方法由亚历山大·西格尔（Aleksandr Segal）、迪尔克·黑内尔（Dirk Hähnel）和[塞巴斯蒂安·特龙](https://www.edgepedia.org/zh/sebastian-thrun)（Sebastian Thrun）于 2009 年在机器人学：科学与系统（Robotics: Science and Systems）上发表，并在单一框架中统一了标准点到点 ICP 与点到平面 ICP，能够利用两次扫描的表面结构表达“平面到平面”目标函数。<sup>[1](https://roboticsproceedings.org/rss05/p21.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 原始发表 | A. Segal, D. Haehnel, S. Thrun, "Generalized-ICP", Robotics: Science and Systems，西雅图（Seattle），2009 年 6 月，DOI 10.15607/RSS.2009.V.021<sup>[1](https://roboticsproceedings.org/rss05/p21.html)</sup> |
| 核心思想 | 在 ICP 最小化步骤上附加概率模型：每个点都来自一个带协方差矩阵的高斯分布，变换通过最小化马氏距离型二次型来估计<sup>[2](https://m.roboticsproceedings.org/rss05/p21.pdf)</sup> |
| 特例 | 当目标协方差为单位矩阵、源协方差为零时，得到标准 ICP；点到平面 ICP 是同一目标函数的极限情形<sup>[2](https://m.roboticsproceedings.org/rss05/p21.pdf)</sup> |
| 对应点搜索 | 与标准 ICP 相同：用欧氏距离寻找最近点，因此可以使用 kd 树，保持速度与简洁性<sup>[2](https://m.roboticsproceedings.org/rss05/p21.pdf)</sup> |
| 表面模型 | 对每个扫描点最近的 20 个点做主成分分析（PCA），估计局部表面协方差；最小特征值对应的特征向量给出表面法向<sup>[2](https://m.roboticsproceedings.org/rss05/p21.pdf)</sup> |
| 报告表现 | 在模拟和真实数据上优于标准 ICP 与点到平面 ICP，对错误对应更鲁棒，使最大匹配距离参数不再那么关键<sup>[2](https://m.roboticsproceedings.org/rss05/p21.pdf)</sup> |
| 标准实现 | 点云库（Point Cloud Library，PCL）的 `GeneralizedIterativeClosestPoint` 与 Open3D 的 `registration_generalized_icp`<sup>[3](https://pointclouds.org/documentation/classpcl_1_1_generalized_iterative_closest_point.html)</sup><sup> • </sup><sup>[4](https://www.open3d.org/docs/latest/python_api/open3d.pipelines.registration.registration_generalized_icp.html)</sup> |

## 概率模型

标准 ICP 迭代两个步骤：用最近点搜索在变换后的源点云与目标点云之间找到对应点集，然后通过最小化这些对应关系上的目标函数来更新变换。在点到点 ICP 中，目标函数是匹配点对之间欧氏距离的平方和；由陈（Chen）和梅迪奥尼（Medioni）提出的点到平面 ICP 则改为最小化投影到目标表面法向上的残差。<sup>[2](https://m.roboticsproceedings.org/rss05/p21.pdf)</sup>

广义 ICP 只修改最小化步骤。每个测量点被假定为来自一个以底层真实点为中心的高斯分布，并带有一个 3×3 协方差矩阵。在对应关系完美且变换正确的假设下，变换后的源点与其目标点之间的残差服从正态分布，其协方差等于目标协方差加上变换后的源协方差。[最大似然估计](https://www.edgepedia.org/zh/maximum-likelihood-estimation)于是归结为最小化

\[ T = \arg\min_{T} \sum_{i} d_i^{(T)\,\mathsf{T}} \left( C_i^{B} + T C_i^{A} T^{\mathsf{T}} \right)^{-1} d_i^{(T)}, \]

其中 \( d_i^{(T)} = b_i - T a_i \) 是对应残差，\( C_i^{A} \)、\( C_i^{B} \) 分别是源协方差和目标协方差。令 \( C_i^{B} = I \)、\( C_i^{A} = 0 \)，即可精确恢复标准 ICP 更新；将目标协方差取为表面法向投影算子的（伪）逆，即可把点到平面 ICP 作为极限情形恢复出来。<sup>[2](https://m.roboticsproceedings.org/rss05/p21.pdf)</sup>

ICP 循环的其余部分被有意保持不变。对应关系仍然用普通欧氏最近邻搜索寻找，而不是用概率度量，这允许使用 kd 树查找，并保持 ICP 区别于完全概率化技术的速度与简洁性。<sup>[2](https://m.roboticsproceedings.org/rss05/p21.pdf)</sup>

## 平面到平面匹配

该框架的主要应用是利用两次扫描的表面信息。现实世界中的表面被视为局部平面，每个采样点只沿其表面法向约束对齐。为此，每个点在局部平面内被赋予高协方差，而在法向方向上被赋予非常低的协方差，即一个很小的常数 \( \epsilon \)；协方差矩阵经过旋转，使 \( \epsilon \) 分量与表面法向对齐。<sup>[2](https://m.roboticsproceedings.org/rss05/p21.pdf)</sup>

这种构造对每个对应关系起到软约束作用。当两个表面朝向不一致的点被匹配时，该对应关系的协方差之和变为各向同性，因此与薄而清晰定义的平面对应相比，这一对点对目标函数的贡献很小。于是，错误对应关系形成的是弱而无信息的约束，而不是把对齐拉离正确解。<sup>[2](https://m.roboticsproceedings.org/rss05/p21.pdf)</sup>

在原始实现中，表面协方差通过对每个扫描点最近的 20 个点的协方差矩阵做主成分分析来计算，并取最小特征值对应的特征向量作为表面法向；同一组法向估计同时用于点到平面 ICP 和广义 ICP。<sup>[2](https://m.roboticsproceedings.org/rss05/p21.pdf)</sup>

## 性能与鲁棒性

原始评估在具有已知真值的室内外环境中，用光线追踪模拟 SICK 扫描仪来生成数据，并在装有车顶 Velodyne 测距仪的汽车采集的真实日志（标注了 GPS 和 IMU 数据）上，比较了标准 ICP、点到平面 ICP 与广义 ICP。广义 ICP 相对两个基线都提高了精度，而利用两次扫描的结构信息降低了错误对应关系的影响。<sup>[2](https://m.roboticsproceedings.org/rss05/p21.pdf)</sup>

最大匹配距离 \( d_{max} \) 在标准 ICP 中用于权衡收敛半径与精度，在广义 ICP 中变得不那么关键：通过降低错误对应关系的权重，算法减轻了选择较大值所带来的惩罚，使得无需逐场景手动调参也更容易在不同环境中获得良好性能。即使把广义 ICP 最坏情况下的 \( d_{max} \) 与点到平面 ICP 最好情况下的值相比，广义 ICP 的表现也大致相当。<sup>[2](https://m.roboticsproceedings.org/rss05/p21.pdf)</sup> 后来的综述描述了同样的权衡解决方式：该方法保持标准 ICP 的速度与简洁性，同时表现出对噪声和离群点更强的鲁棒性。<sup>[5](https://link.springer.com/article/10.1007/s11370-024-00515-8)</sup>

独立基准测试在实践中支持了这一鲁棒性主张。在一项使用体素地图进行车辆定位的研究中，点到平面 ICP 和广义 ICP 对初始位姿误差比点到点 ICP 更鲁棒，并且在大多数测试的体素尺寸和初始误差下取得了低于 10 厘米的定位误差。<sup>[6](https://onlinelibrary.wiley.com/doi/full/10.1111/phor.70039)</sup> 一项在意大利（Italy）阿尔卑斯山地地形上进行的基准测试发现，点到平面 ICP 是计算效率最高的方法，而 GICP 在植被覆盖表面等复杂条件下提供了更好的鲁棒性。<sup>[7](https://isprs-archives.copernicus.org/articles/XLIX-B2-2026/239/2026/)</sup>

## 实现

该算法已在两个最常用的[点云库](https://www.edgepedia.org/zh/point-cloud-library)中实现。点云库（PCL）提供 `pcl::GeneralizedIterativeClosestPoint`，它是其 ICP 类的子类，默认参数包括用于协方差估计的 20 个近邻（`k_correspondences_`）、GICP 的 epsilon 常数 0.001 和旋转 epsilon 2e-3；它还提供了一个 6D 变体 `GeneralizedIterativeClosestPoint6D`。<sup>[3](https://pointclouds.org/documentation/classpcl_1_1_generalized_iterative_closest_point.html)</sup><sup> • </sup><sup>[8](https://pointclouds.org/documentation/group__registration.html)</sup> Open3D 提供 `registration_generalized_icp`，配有 `TransformationEstimationForGeneralizedICP` 估计器（epsilon 0.001），默认收敛条件为相对适应度 1e-6、相对 RMSE 1e-6，以及最多 30 次迭代。<sup>[4](https://www.open3d.org/docs/latest/python_api/open3d.pipelines.registration.registration_generalized_icp.html)</sup> 西格尔自己的参考 C++ 实现于 2009 年发布，依赖 ANN 与 GSL 库。<sup>[9](https://github.com/avsegal/gicp)</sup>

由于 GICP 和其他 ICP 变体严重依赖最近邻搜索，搜索往往成为大规模点云的瓶颈，而分支密集的搜索代码难以映射到 GPU。<sup>[10](https://staff.aist.go.jp/k.koide/assets/pdf/icra2021_02.pdf)</sup> 日本产业技术综合研究所（National Institute of Advanced Industrial Science and Technology）的小出健司（Kenji Koide）、横塚雅史（Masashi Yokozuka）、大石修司（Shuji Oishi）和坂野敦彦（Atsuhiko Banno）用体素化广义 ICP（voxelized generalized ICP，VGICP）算法解决了这一问题。该算法将逐点分布聚合为体素分布，而不是执行精确最近邻搜索；他们的实现可在 CPU 上以 30 Hz 处理 15,000 个点，在 GPU 上以 120 Hz 处理，精度与 GICP 相当。<sup>[10](https://staff.aist.go.jp/k.koide/assets/pdf/icra2021_02.pdf)</sup> 他们的 `fast_gicp` 软件包提供多线程与 CUDA 实现，并带有兼容 PCL 的接口，报告称多线程 GICP 约为 40 FPS，单线程为 15 FPS，体素化 GICP 为 70 FPS，CUDA 体素化版本为 120 FPS。<sup>[11](https://github.com/koide3/fast_gicp)</sup>

## 应用

GICP 是[激光雷达里程计](https://www.edgepedia.org/zh/lidar-odometry)与建图系统中的标准精配准组件。截至 2025 年 10 月，MOLA 激光雷达里程计项目（MOLA LiDAR odometry project）将采用基于关键帧的局部地图及广义 ICP（“协方差到协方差”）匹配器的方案作为其默认且推荐的 3D 激光雷达流程。<sup>[12](https://github.com/MOLAorg/mola_lidar_odometry/blob/develop/docs/mola_lo_pipelines.rst)</sup> iG-LIO 系统在增量体素地图上，以迭代误差状态[卡尔曼滤波](https://www.edgepedia.org/zh/kalman-filter)融合广义 ICP 与点到平面约束，用于紧耦合激光雷达-惯性里程计。<sup>[13](https://arxiv.org/abs/2607.09947)</sup> 基于 GICP 的匹配代价因子也已被嵌入 GPU 加速的全局一致激光雷达建图框架。<sup>[14](https://arxiv.org/abs/2109.07073)</sup>

概率化表述也便于扩展。原论文指出，该框架允许在保持 ICP 速度的同时加入离群点项、测量噪声模型和其他概率技术；例如，可以将高斯核与均匀分布混合来建模离群点，不过当时这类变体还缺乏易于最小化的闭式解。<sup>[2](https://m.roboticsproceedings.org/rss05/p21.pdf)</sup> 后续工作走向了不同方向：NICP 将距离评估扩展到 6D 空间，把表面法向纳入测量向量；GenZ-ICP 则以自适应加权结合点到点与点到平面度量，以抵抗走廊式环境中的退化。<sup>[5](https://link.springer.com/article/10.1007/s11370-024-00515-8)</sup><sup> • </sup><sup>[15](https://arxiv.org/abs/2411.06766)</sup>

## References

1. [A. Segal, D. Haehnel, S. Thrun (2009). Generalized-ICP. Robotics: Science and Systems V.](https://roboticsproceedings.org/rss05/p21.html)
2. [Generalized-ICP (paper PDF), Robotics: Science and Systems proceedings.](https://m.roboticsproceedings.org/rss05/p21.pdf)
3. [pcl::GeneralizedIterativeClosestPoint Class Template Reference, PCL documentation.](https://pointclouds.org/documentation/classpcl_1_1_generalized_iterative_closest_point.html)
4. [open3d.pipelines.registration.registration_generalized_icp, Open3D 0.20.0 documentation.](https://www.open3d.org/docs/latest/python_api/open3d.pipelines.registration.registration_generalized_icp.html)
5. [LiDAR odometry survey: recent advancements and remaining challenges, Intelligent Service Robotics.](https://link.springer.com/article/10.1007/s11370-024-00515-8)
6. [Vehicle Localization Using Lidar and Voxel Maps: Benchmarking Point Cloud Registration Methods, The Photogrammetric Record.](https://onlinelibrary.wiley.com/doi/full/10.1111/phor.70039)
7. [Benchmarking Local Registration Algorithms on Multi Temporal and Multi Spatial Point Clouds, ISPRS Archives XLIX-B2-2026.](https://isprs-archives.copernicus.org/articles/XLIX-B2-2026/239/2026/)
8. [Point Cloud Library (PCL): Module registration.](https://pointclouds.org/documentation/group__registration.html)
9. [avsegal/gicp: Generalized ICP reference implementation, GitHub.](https://github.com/avsegal/gicp)
10. [K. Koide, M. Yokozuka, S. Oishi, A. Banno (2021). Voxelized GICP for Fast and Accurate 3D Point Cloud Registration. ICRA 2021.](https://staff.aist.go.jp/k.koide/assets/pdf/icra2021_02.pdf)
11. [koide3/fast_gicp: A collection of GICP-based fast point cloud registration algorithms, GitHub.](https://github.com/koide3/fast_gicp)
12. [MOLA lidar odometry pipelines documentation, GitHub.](https://github.com/MOLAorg/mola_lidar_odometry/blob/develop/docs/mola_lo_pipelines.rst)
13. [A Numerically-Robust ROS 2 Port of iG-LIO, arXiv.](https://arxiv.org/abs/2607.09947)
14. [Globally Consistent 3D LiDAR Mapping with GPU-accelerated GICP Matching Cost Factors, arXiv.](https://arxiv.org/abs/2109.07073)
15. [GenZ-ICP: Generalizable and Degeneracy-Robust LiDAR Odometry Using an Adaptive Weighting, arXiv.](https://arxiv.org/abs/2411.06766)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Language and vision AI › Computer vision › Vision methods and geometry › Matching, registration, and stitching

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/generalized-iterative-closest-point

English original: https://www.edgepedia.org/generalized-iterative-closest-point
