procrustes_fit — SHAPESTAT procrustes op

• 数据种类:points × points → matrix

• 调用: import fullseye as fs; fs.ledger.procrustes_fit(source, target, scaling: 'bool' = True, reflection: 'bool' = False)(要直接调用实现,import shapestats; shapestats.procrustes_fit(source, target, scaling: 'bool' = True, reflection: 'bool' = False);从台账取用则 opsshapestat.get("procrustes_fit"))

用法

将 *source* 叠合到 *target* 上的相似变换。→ (4, 4) 的齐次矩阵。

前提是点的排列相互对应(第 i 个点彼此位于相同的解剖学位置)。对无对应关系的点集不会抛出异常,而是返回无意义的变换 —— 是否有对应关系从本函数是看不出来的。若无对应关系,请使用 ICP 系(registration)。

scaling=True 时也吸收大小的差异。reflection=False(默认)强制 det(R) = +1 —— 若允许反射,左手系的个体会与右手系的平均重合,左右不对称性这一要测量的东西就会消失。

矩阵为齐次坐标,方向为 target ~ source @ M[:3,:3].T + M[:3,3]。

详细使用指南

• shape_statistics 族使用指南

参考(示例数据、文献)

• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。

• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。

• 算法的正典(作者、年份)与用途见上面的族使用指南。

可运行的示例(实际调用该算子并已验证的样例)

• poc_change_detection_misreg — py -3.11 examples/poc_change_detection_misreg.py

• poc_die_tilt_tsv_overlay — py -3.11 examples/poc_die_tilt_tsv_overlay.py

• shapestat_landmark_tour — py -3.11 examples/shapestat_landmark_tour.py

类型可衔接的下一个算子(可接受 matrix 作为输入)

—

同类别(procrustes)

procrustes_align · procrustes_distance · generalized_procrustes · shape_mean


*Provenance: shapestats.py — SHAPESTAT 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.