contour_fourier_truncation_energy — SHAPE2D descriptor op

• 数据种类:matrix → table

• 调用: import fullseye as fs; fs.ledger.contour_fourier_truncation_energy(spectrum, orders=None)(要直接调用实现,import fourierdesc; fourierdesc.contour_fourier_truncation_energy(spectrum, orders=None);从台账取用则 opsshape2d.get("contour_fourier_truncation_energy"))

用法

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

打ち切り次数ごとの予言される誤差(`table`)—— パーセバルの厳密式。

次数 `K で打ち切った再構成 z^K` について、標本上の二乗平均誤差は

`mean|z - z^K|^2 = Σ_{|k| > K} |c_k|^2` に厳密に等しい。だから

再構成を 1 度もせずに「何項あれば何画素まで似るか」を先に言える。

★予言が厳密なのは、係数列が完全なときだけである(`contour_fourier_complex`

を `n_harmonics=None` で呼んだ場合)。打ち切った係数列を渡されると、

捨てられた側のエネルギーは知りようがないので、返る誤差は下界になる

—— 過小に見える誤差を「厳密」と言わないために、ここに書いておく。

返り値: dict(`table`)

"order": 打ち切り次数 `K` の 1-D

"rms_error": 予言される rms 誤差[入力の単位]

"energy_fraction": 残した項が担うエネルギーの割合(`0..1`、単調増加)

"total_energy": `Σ_{k≠0} |c_k|^2(位置 c_0` を除いた形のエネルギー)

"k_max": スペクトルが持つ最大次数

详细使用指南

• shape_description_2d 族使用指南

参考(示例数据・文献)

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

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

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

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

• poc_one_stroke_epicycles — py -3.11 examples/poc_one_stroke_epicycles.py

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

from_xld

同类别(descriptor)

elliptic_fourier · reconstruct · invariants · normalize · descriptor_distance · fourier_smooth · from_xld · contour_fourier_complex


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

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