# 形状分析（计算几何）

计算形状分析是一类方法，用于在去除不改变形状的变换——位置、尺度与旋转——之后比较和建模几何对象。其输出包括形状之间的距离、点对应、形变场，以及平均形状和变异模式等统计摘要。形状被定义为从对象中滤除位置、尺度和旋转效应后剩余的全部几何信息。<sup>[1](https://www2.imm.dtu.dk/pubdb/edoc/imm403.pdf)</sup> 该领域主要有两类表示：带标签地标点，以及被视为函数的曲线或曲面；对后者而言，重参数化是一种额外的保形状变换，必须将其商去。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC8357314/)</sup>

| 关键事实 | 细节 |
|---|---|
| 形状的定义 | 滤除位置、尺度和旋转后剩余的全部几何信息<sup>[1](https://www2.imm.dtu.dk/pubdb/edoc/imm403.pdf)</sup> |
| 预形状 | 去除平移和缩放后 \( Z = HX/\|HX\| \)；该术语由肯德尔（Kendall）于 1984 年提出<sup>[3](https://people.stat.sc.edu/dryden/STAT718A/notes/shape-chap4.pdf)</sup> |
| 全普氏距离（Full Procrustes distance） | 闭式 \( d_{F} = \sqrt{1 - (\sum \lambda_{i})^{2}} \)，取值范围为 0 到 1<sup>[3](https://people.stat.sc.edu/dryden/STAT718A/notes/shape-chap4.pdf)</sup> |
| ICP 配准（迭代最近点配准） | 在对应关系未知时，在六个自由度上最小化均方距离<sup>[4](http://graphics.stanford.edu/~smr/ICP/comparison/besl-mckay-icp-pami92.pdf)</sup> |
| SRVF 变换（平方根速度函数变换） | 对非零速度，\( q(t) = \dot{\beta}(t)/\sqrt{\|\dot{\beta}(t)\|} \)；SRVF 空间上的 \( L^{2} \) 度量对重参数化不变<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC8357314/)</sup> |
| 开源工具 | ShapeWorks（基于粒子的对应）<sup>[5](https://www.sci.utah.edu/~shireen/pdfs/book_chapters/shapeworks_book_chapter_2017.pdf)</sup> 与用于黎曼统计的 geomstats Python 库<sup>[6](https://www-sop.inria.fr/asclepios/cours/MVA/MVA-2025-DiffeosCompAnat.pdf)</sup> |

## 工作原理

核心构造是一个商。对于 \( k \) 个地标点的构型矩阵 \( X \)，用赫尔默特矩阵（Helmert matrix）\( H \) 去除平移，再通过缩放得到预形状 \( Z = HX/\|HX\| \)；形状则是等价类 \( [X] = \{Z\Gamma: \Gamma \in SO(m)\} \)，即旋转作用下的轨道空间。二维地标点集的肯德尔形状空间是复射影空间。<sup>[7](https://doi.org/10.1002/9781118445112.stat05087)</sup> 距离在此商上计算：全普氏距离为 \( d_{F}(X_{1},X_{2}) = \sqrt{1 - (\sum_{i} \lambda_{i})^{2}} \)，其中 \( \lambda_{i} \) 是 \( Z_{1}^{T}Z_{2}Z_{2}^{T}Z_{1} \) 的特征值的平方根；部分普氏距离为 \( d_{P} = \sqrt{2}\,(1 - \sum \lambda_{i})^{1/2} \)，大圆距离为 \( \rho = \arccos(\sum \lambda_{i}) \)。<sup>[3](https://people.stat.sc.edu/dryden/STAT718A/notes/shape-chap4.pdf)</sup>

对于曲线和曲面，浸入曲线空间上的弹性度量 \( G_{a,b} \) 具有重参数化不变性，并下降到商形状空间，因此投影是一个黎曼浸没；该领域还区分定义在环境微分同胚形变上的外蕴度量与直接定义在曲线空间上的内蕴度量。<sup>[8](https://par.nsf.gov/servlets/purl/10279201)</sup> 对于曲面，平方根法向量场（SRNF）将形状映射到 \( L^{2}(S^{2}, \mathbb{R}^{3}) \) 中，并通过拉回 \( L^{2} \) 距离来定义伪距离；其退化可能导致数值伪影，而 varifold 匹配已被用于相对于它配准曲面。<sup>[9](https://link.springer.com/article/10.1007/s11263-022-01743-0)</sup>

## 如何实施

基于地标点的流程如下。普氏对齐有四个步骤：计算每个形状的质心，将每个形状缩放到相同大小，在质心处对齐形状，并通过旋转（经由奇异值分解（SVD））对齐朝向；拟合在对齐后最小化点距离平方和，而普氏距离由该最小化平方和的平方根得到，归一化取决于所用约定。广义普氏分析迭代地将所有形状对齐到一个估计均值，直到收敛；普氏均值是对齐后形状的弗雷歇均值（Fréchet mean）。投影到切空间使弯曲的形状空间线性化，从而可以应用主成分分析（PCA），得到变异模式；主动形状模型（Active Shape Models）直接建立在这套统计机制之上。<sup>[1](https://www2.imm.dtu.dk/pubdb/edoc/imm403.pdf)</sup>

对于对应关系未知的配准，ICP 针对自由形态点集、曲线和曲面，在六个自由度上迭代最小化均方距离。<sup>[4](http://graphics.stanford.edu/~smr/ICP/comparison/besl-mckay-icp-pami92.pdf)</sup> 对于非刚性对应，相关对应算法在所有对应上优化一个联合概率模型，强制保持测地距离，并用循环置信传播求解。<sup>[10](https://papers.neurips.cc/paper_files/paper/2004/file/e02e27e04fdff967ba7d76fb24b8069d-Paper.pdf)</sup> ShapeWorks 通过相互作用粒子建立对应，这些粒子由能量优化重新分布，该优化在正则化对应位置的同时最小化统计模型的熵。<sup>[5](https://www.sci.utah.edu/~shireen/pdfs/book_chapters/shapeworks_book_chapter_2017.pdf)</sup> 微分同胚形变使用 LDDMM（大形变微分同胚度量映射），在微分同胚上采用右不变 Sobolev 度量；或使用平稳速度场（Stationary Velocity Fields），其中微分同胚是一个光滑向量场的指数，该指数通过缩放-平方计算；对称对数 demons 方法有开源的 ITK 实现。<sup>[6](https://www-sop.inria.fr/asclepios/cours/MVA/MVA-2025-DiffeosCompAnat.pdf)</sup>

## 起源

通过几何变换网格比较生物体的想法可追溯到[达西·温特沃斯·汤普森](https://www.edgepedia.org/zh/darcy-wentworth-thompson)（D'Arcy Wentworth Thompson）1917 年的著作《论生长与形态》（On Growth and Form）。<sup>[11](https://doi.org/10.5962/bhl.title.11332)</sup> D. G. 肯德尔（D. G. Kendall）在《形状的扩散》（The diffusion of shape，《应用概率进展》，1977）中首次陈述了形状的统计理论<sup>[12](https://doi.org/10.2307/1426091)</sup>，并于 1984 年发展了形状流形、普氏度量和复射影形状空间，包括预形状这一术语。<sup>[13](https://doi.org/10.1112/blms/16.2.81)</sup> 弗雷德·L. 布克斯坦（Fred L. Bookstein）建立了基于地标点的分支：《生物形状与形状变化的测量》（The Measurement of Biological Shape and Shape Change，1978）<sup>[14](https://doi.org/10.1007/978-3-642-93093-5)</sup>、用于二维地标点数据的布克斯坦形状坐标（《统计科学》，1986）<sup>[15](https://doi.org/10.1214/ss/1177013696)</sup>，以及形变的薄板样条分解（1989）。<sup>[16](https://doi.org/10.1109/34.24792)</sup> 普氏叠加机制本身来自 J. C. 高尔（J. C. Gower）的《广义普氏分析》（Generalized Procrustes Analysis，《心理计量学》，1975）<sup>[17](https://doi.org/10.1007/bf02291478)</sup>，由 F. 詹姆斯·罗尔夫（F. James Rohlf）和丹尼斯·斯莱斯（Dennis Slice）扩展用于最优地标点叠加（1990）<sup>[18](https://doi.org/10.2307/2992207)</sup>，并由科林·古德尔（Colin Goodall）置于统计框架中（1991）。<sup>[19](https://doi.org/10.1111/j.2517-6161.1991.tb01825.x)</sup> [乌尔夫·格伦南德](https://www.edgepedia.org/zh/ulf-grenander)（Ulf Grenander）的《一般模式理论》（General Pattern Theory，1993）提供了解剖学的可形变模板观点<sup>[20](https://doi.org/10.1093/oso/9780198536710.001.0001)</sup>，迈克尔·I. 米勒（Michael I. Miller）、阿兰·特鲁韦（Alain Trouvé）和洛朗·尤内斯（Laurent Younes）将其发展为计算解剖学，即把解剖结构视为在微分同胚群作用下由模板生成的轨道（2002）。<sup>[21](https://doi.org/10.1146/annurev.bioeng.4.092101.125733)</sup> 洛朗·尤内斯在《形状之间可计算的弹性距离》（Computable Elastic Distances Between Shapes，《SIAM 应用数学杂志》，1998）中给出了弹性距离框架。<sup>[22](https://doi.org/10.1137/s0036139995287685)</sup>

## 变体

若干具名框架构成了当前实践的结构。ICP 由 P. J. 贝斯尔（P.J. Besl）和尼尔·D. 麦凯（Neil D. McKay）在《一种三维形状配准方法》（A method for registration of 3-D shapes，1992）中描述<sup>[23](https://doi.org/10.1109/34.121791)</sup>；主动形状模型由 T. F. 库茨（T. F. Cootes）和 C. J. 泰勒（C. J. Taylor）于 1992 年以“智能蛇”（Smart Snakes）为题提出。<sup>[24](https://doi.org/10.1007/978-1-4471-3201-1_28)</sup> 弹性曲线框架以非零速度下的平方根速度函数 \( q = \dot{\beta}/\sqrt{\|\dot{\beta}\|} \) 为中心，其 \( L^{2} \) 度量近似于衡量拉伸与弯曲的弹性度量，并且在重参数化下不变；与早期固定点对应并以次优方式匹配特征的弧长归一化不同，弹性分析计算最优参数化。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC8357314/)</sup> 对于曲面，最流行的数值方法基于 SRNF 框架<sup>[9](https://link.springer.com/article/10.1007/s11263-022-01743-0)</sup>，由伊恩·H. 杰明（Ian H. Jermyn）、塞巴斯蒂安·库尔特克（Sebastian Kurtek）、哈米德·拉加（Hamid Laga）和阿努杰·斯里瓦斯塔瓦（Anuj Srivastava）在其 2017 年 Synthesis 讲座中针对三维对象加以阐述。<sup>[25](https://doi.org/10.2200/s00785ed1v01y201707cov012)</sup>

在马克斯·奥夫斯亚尼科夫（Maks Ovsjanikov）、米雷拉·本-陈（Mirela Ben-chen）、贾斯汀·所罗门（Justin Solomon）、阿德里安·布切尔（Adrian Butscher）和[列奥尼达斯·吉巴斯](https://www.edgepedia.org/zh/leonidas-guibas)（Leonidas Guibas）的函数映射框架中，每个曲面携带一个截断基，通常是拉普拉斯-贝尔特拉米算子的前 \( k \) 个特征向量，而对应是一个紧凑的 \( k \times k \) 矩阵 \( C \)，在基之间变换系数向量。ZoomOut 执行谱上采样，以高效细化对应。<sup>[26](https://doi.org/10.48550/arxiv.1904.07865)</sup>

## 应用

在医学影像中，计算解剖学将可形变模板模型应用于生长研究、皮层映射，以及衰老与精神分裂症中的海马体映射。<sup>[21](https://doi.org/10.1146/annurev.bioeng.4.092101.125733)</sup> ShapeWorks 已在神经科学、生物表型分析、骨科和心脏病学中展示出有效性。<sup>[5](https://www.sci.utah.edu/~shireen/pdfs/book_chapters/shapeworks_book_chapter_2017.pdf)</sup> 在生物学和古生物学中，广义普氏曲面分析（Generalized Procrustes Surface Analysis）已在灵长类头骨上得到演示，达到与基于地标点的 GPA 相似的叠加质量。<sup>[27](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0150368)</sup>

## 局限与替代方法

ICP 仅在两个视图接近且完全重叠时表现良好；否则它会陷入局部极小，并且由于它总是为每个数据点分配一个最近点，会产生使解产生偏差的虚假离群对应。基于学习的方法已被用于改进匹配阶段并检测离群点。<sup>[28](https://encov.ip.uca.fr/publications/pubfiles/2020_Castellani_etal_3DIAA_registration.pdf)</sup> 保测地距离对应在剧烈拓扑变化下会失败，例如手臂接触身体时，并且假设数据网格是模型网格的子集。<sup>[10](https://papers.neurips.cc/paper_files/paper/2004/file/e02e27e04fdff967ba7d76fb24b8069d-Paper.pdf)</sup> 函数映射与软映射紧凑，但在恢复点对点对应时容易产生转换误差，而 LBO 基方法假设近等距形变；更广泛地说，当前的对应方法往往缺乏鲁棒性，难以扩展到更大的形状集合。在拓扑噪声下寻找有意义的对应仍是一个开放挑战，因为此类噪声在采集三维数据时大多不可避免。<sup>[29](http://www.cs.bilkent.edu.tr/~ys/pubs/corsurvey-tvcj20.pdf)</sup> SHREC'19 基准发现，深度学习技术在非等距形变下表现更好，但传统方法无需训练、可泛化到未见数据集，且较不易受拓扑变化影响。<sup>[30](https://orca.cardiff.ac.uk/id/eprint/121530/1/ShapeCorrespondence_SHREC19.pdf)</sup>

## References

1. [Larsen et al., 'A Brief Introduction to Statistical Shape Analysis' (DTU report IMM403)](https://www2.imm.dtu.dk/pubdb/edoc/imm403.pdf)
2. [Analysis of shape data: From landmarks to elastic curves](https://pmc.ncbi.nlm.nih.gov/articles/PMC8357314/)
3. [Shape Space and Distances (chapter notes from Dryden & Mardia, Statistical Shape Analysis)](https://people.stat.sc.edu/dryden/STAT718A/notes/shape-chap4.pdf)
4. [A method for registration of 3-D shapes (Besl & McKay, IEEE TPAMI 1992)](http://graphics.stanford.edu/~smr/ICP/comparison/besl-mckay-icp-pami92.pdf)
5. [Statistical Shape and Deformation Analysis: Methods, Implementation and Applications (ShapeWorks chapter)](https://www.sci.utah.edu/~shireen/pdfs/book_chapters/shapeworks_book_chapter_2017.pdf)
6. [Diffeomorphic deformations and computational anatomy (Pennec, MVA course slides)](https://www-sop.inria.fr/asclepios/cours/MVA/MVA-2025-DiffeosCompAnat.pdf)
7. [Ian L. Dryden, 'Shape Analysis', Wiley StatsRef: Statistics Reference Online, 2014 (metadata page)](https://doi.org/10.1002/9781118445112.stat05087)
8. [Shape comparison and analysis of curves based on intrinsic Riemannian metrics (book chapter, NSF PAR)](https://par.nsf.gov/servlets/purl/10279201)
9. [Elastic Shape Analysis of Surfaces with Second-Order Sobolev Metrics: A Comprehensive Numerical Framework (IJCV)](https://link.springer.com/article/10.1007/s11263-022-01743-0)
10. [The Correlated Correspondence Algorithm for Unsupervised Registration of Nonrigid Surfaces (NeurIPS 2004)](https://papers.neurips.cc/paper_files/paper/2004/file/e02e27e04fdff967ba7d76fb24b8069d-Paper.pdf)
11. [D'Arcy Wentworth Thompson (1917). On growth and form. University Press eBooks.](https://doi.org/10.5962/bhl.title.11332)
12. [D. G. Kendall (1977). The diffusion of shape. Advances in Applied Probability.](https://doi.org/10.2307/1426091)
13. [David G. Kendall (1984). Shape Manifolds, Procrustean Metrics, and Complex Projective Spaces. Bulletin of the London Mathematical Society.](https://doi.org/10.1112/blms/16.2.81)
14. [Fred L. Bookstein (1978). The Measurement of Biological Shape and Shape Change. Lecture notes in biomathematics.](https://doi.org/10.1007/978-3-642-93093-5)
15. [Fred L. Bookstein (1986). Size and Shape Spaces for Landmark Data in Two Dimensions. Statistical Science.](https://doi.org/10.1214/ss/1177013696)
16. [F.L. Bookstein (1989). Principal warps: thin-plate splines and the decomposition of deformations. IEEE Transactions on Pattern Analysis and Machine Intelligence.](https://doi.org/10.1109/34.24792)
17. [J. C. Gower (1975). Generalized Procrustes Analysis. Psychometrika.](https://doi.org/10.1007/bf02291478)
18. [F. James Rohlf, Dennis Slice (1990). Extensions of the Procrustes Method for the Optimal Superimposition of Landmarks. Systematic Zoology.](https://doi.org/10.2307/2992207)
19. [Colin Goodall (1991). Procrustes Methods in the Statistical Analysis of Shape. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/j.2517-6161.1991.tb01825.x)
20. [Ulf Grenander (1993). General Pattern Theory. .](https://doi.org/10.1093/oso/9780198536710.001.0001)
21. [Michael I. Miller, Alain Trouvé, Laurent Younes (2002). On the Metrics and Euler-Lagrange Equations of Computational Anatomy. Annual Review of Biomedical Engineering.](https://doi.org/10.1146/annurev.bioeng.4.092101.125733)
22. [Laurent Younes (1998). Computable Elastic Distances Between Shapes. SIAM Journal on Applied Mathematics.](https://doi.org/10.1137/s0036139995287685)
23. [P.J. Besl, Neil D. McKay (1992). A method for registration of 3-D shapes. IEEE Transactions on Pattern Analysis and Machine Intelligence.](https://doi.org/10.1109/34.121791)
24. [T. F. Cootes, C. J. Taylor (1992). Active Shape Models, ‘Smart Snakes’. .](https://doi.org/10.1007/978-1-4471-3201-1_28)
25. [Ian H. Jermyn and colleagues (2017). Elastic Shape Analysis of Three-Dimensional Objects. Synthesis lectures on computer vision.](https://doi.org/10.2200/s00785ed1v01y201707cov012)
26. [Melzi, Simone and colleagues (2019). ZoomOut: Spectral Upsampling for Efficient Shape Correspondence. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1904.07865)
27. [A Landmark-Free Method for Three-Dimensional Shape Analysis (PLOS One)](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0150368)
28. [3D Shape Registration (Castellani et al., 2020)](https://encov.ip.uca.fr/publications/pubfiles/2020_Castellani_etal_3DIAA_registration.pdf)
29. [Recent advances in shape correspondence (Sahillioğlu, TVCG 2020)](http://www.cs.bilkent.edu.tr/~ys/pubs/corsurvey-tvcj20.pdf)
30. [SHREC'19: Shape Correspondence with Isometric and Non-Isometric Deformations](https://orca.cardiff.ac.uk/id/eprint/121530/1/ShapeCorrespondence_SHREC19.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Numerical, string, and geometric algorithms › Computational geometry

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/shape-analysis-computational-geometry

English original: https://www.edgepedia.org/shape-analysis-computational-geometry
