elliptic_fourier — SHAPE2D descriptor op

数据种类:pairsefdmodel

调用:import fourierdesc; fourierdesc.elliptic_fourier(points, n_harmonics=10)(或 opsshape2d.get("elliptic_fourier"))

用法

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

閉輪郭の楕円フーリエ係数を Kuhl–Giardina 閉形式で求める。

引数:

points: (N,2) の閉輪郭頂点。閉じていなければ内部で先頭点を末尾に補う。

n_harmonics: 高調波数 N(多いほど細部まで表現)。

返り値: dict

"coeffs": (N,4) 配列。行 n が [a_n, b_n, c_n, d_n]。

"a0", "c0": DC 成分(輪郭の中心オフセット)。

"n_harmonics": N。

再構成 :func:reconstruct

x(t)=a0+Σ a_n cos(2πnt)+b_n sin(2πnt), y(t)=c0+Σ c_n cos+d_n sin (t∈[0,1))。

详细使用指南

shape_description_2d 族使用指南

参考(示例数据・文献)

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

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

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

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

contour_fourierpy -3.11 examples/contour_fourier.py

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

reconstruct · invariants · normalize · descriptor_distance

同类别(descriptor)

reconstruct · invariants · normalize · descriptor_distance · fourier_smooth · from_xld


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

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