shape_project — SHAPESTAT model op

数据种类:shapemodel × pointssignal

调用: import fullseye as fs; fs.ledger.shape_project(model, shape, align: 'bool' = True)(要直接调用实现,import shapestats; shapestats.shape_project(model, shape, align: 'bool' = True);从台账取用则 opsshapestat.get("shape_project"))

用法

> 该算子的说明尚无译文,以下照原文给出。

形をモデルの座標(主成分スコア)へ。→ `(k,)`。

`align=True` なら先に平均形状へ Procrustes で合わせる。合わせずに投影すると

位置と向きの違いがスコアに漏れ、同じ形なのに別の個体に見える

式: `scores = components @ (shape - mean).ravel()(components` は

`(k, N*3) の正規直交行、mean(N, 3))。align=True` のときは

`procrustes_align(shape, mean)`(スケール込み・鏡像なし)を先に掛ける。

• `model: shape_pca の返り値(mean / components / variance` /

`n_points を持つ dict)。欠けていれば ValueError`。

• `shape: (N, 3)N == model["n_points"]`、有限。点の並びは学習に使った

ランドマークと同じ順であること(対応が違っても例外は出ない)。

• `align: 既定 True。shape_pca(align=False)` で作ったモデル(大きさを形質に

含める)に投影するときは、ここも `False` にしないとスケールが消える。

• 返り値: `(k,) float64。各成分の単位は座標と同じ。sqrt(variance)` で割れば

標準偏差単位(何 σ 外れているか)になる。

• 失敗: `ValueError`(モデルの形式、点数の不一致、非有限)。

逆写像は `shape_reconstruct、外れ具合の 1 数値は shape_mahalanobis`。

详细使用指南

shape_statistics 族使用指南

参考(示例数据・文献)

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

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

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

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

shapestat_landmark_tourpy -3.11 examples/shapestat_landmark_tour.py

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

shape_reconstruct

同类别(model)

shape_pca · shape_reconstruct · shape_mahalanobis · shape_explained_variance · shape_synthesize


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

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