reconstruct — SHAPE2D descriptor op

데이터 종류: efdmodelpairs

호출: import fullseye as fs; fs.ledger.reconstruct(model, n_points=300, n_harmonics=None)(구현을 직접 호출하려면 import fourierdesc; fourierdesc.reconstruct(model, n_points=300, n_harmonics=None), 원장에서 가져오려면 opsshape2d.get("reconstruct"))

사용법

> 이 연산자의 설명은 아직 번역이 없습니다. 원문을 그대로 싣습니다.

EFD 係数から輪郭を再構成する((M,2))。

n_harmonics を係数数より小さくすると 高調波を打ち切って平滑化 される

(低次だけ残すほど丸くなる)。

式: `t = linspace(0, 1, n_points, endpoint=False)` について

`x(t) = a0 + Σ a_n cos(2πnt) + b_n sin(2πnt)`、

`y(t) = c0 + Σ c_n cos(2πnt) + d_n sin(2πnt)(n = 1..N`)。

• `model: elliptic_fourier の返り値(coeffs (N, 4)a0c0`)。

`normalize` を通した係数を渡せば正準ポーズ(第 1 高調波で整列)の輪郭が

出る。dict の検証はしない(キー欠落は `KeyError`)。

• `n_points: 出力点数 M(int` に切る)。等パラメータ間隔で、弧長

等間隔ではない。`endpoint=False` なので末尾点は先頭点と一致しない

(閉じた多角形にするなら先頭点を末尾に足す)。0 なら空の `(0, 2)`。

• `n_harmonics: 使う高調波数。None で全部、N より大きい値は N` に

切り詰め、0 以下なら DC だけ(全点が中心 `(a0, c0)`)。

• 返り値: `(M, 2) float64。座標の並び((x, y)(row, col)`)は

`elliptic_fourier に渡した並びをそのまま引き継ぐ。t = 0` は元輪郭の

始点に対応する。

輪郭を係数化せずに滑らかにするだけなら `fourier_smooth`。係数どうしの

比較は `invariants / descriptor_distance`。

자세한 사용 가이드

shape_description_2d 패밀리 가이드

참고(샘플 데이터·문헌)

• 샘플 데이터 카탈로그(DL URL / 라이선스) —— 2-D 는 skimage.data(BSD/public)+ 합성, 3-D 는 실데이터 소스(Stanford/PDS 등)의 DL URL.

• 연산자의 내력·참고문헌 —— 이 연산자 족의 바탕이 된 연구/기법의 출처.

• 알고리즘의 정전(저자·연도)과 용도는 위의 패밀리 사용 가이드에 적혀 있습니다.

실행 가능한 예제(이 연산자를 실제로 호출하는 검증된 샘플)

contour_fourierpy -3.11 examples/contour_fourier.py

타입이 이어지는 다음 연산자(pairs 를 입력으로 받는 것)

elliptic_fourier · fourier_smooth · add_frame_corners · warp_tps_image · warp_piecewise_affine · morph · morph_sequence

같은 카테고리(descriptor)

elliptic_fourier · invariants · normalize · descriptor_distance · fourier_smooth · from_xld


*Provenance: fourierdesc.py — SHAPE2D 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*

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