generalized_procrustes — SHAPESTAT procrustes op

Data kinds: shapesetshapeset

Call: import shapestats; shapestats.generalized_procrustes(shapes, max_iter: 'int' = 100, tol: 'float' = 1e-10, scaling: 'bool' = True, reflection: 'bool' = False) (or opsshapestat.get("generalized_procrustes"))

Usage

> This operator's description has not been translated yet. The original text follows as it is.

一般化 Procrustes(GPA)。全個体を共通の枠へ。→ `(K, N, 3)`。

手順は教科書どおり: 1 個体を仮の平均にして全員を合わせ、平均を取り直し、

その平均を最初の個体に合わせ直して枠の漂流を止め、収束まで繰り返す。

最後の一手が無いと平均が毎回ゆっくり回り、`tol` に到達しない。

収束の判定は平均形状の移動量(点ごと RMS)。反復数と収束の可否は

:func:shape_mean ではなくこちらには返らない —— 群を返す関数なので、

診断が要るときは前後で :func:procrustes_distance を測ること。

Detailed usage guide

shape_statistics family guide

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• (none yet)

Ops the type connects to (they accept shapeset as input)

shape_mean · shape_pca

Same category (procrustes)

procrustes_fit · procrustes_align · procrustes_distance · shape_mean


*Provenance: shapestats.py — SHAPESTAT operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

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