eval_poly_surface — 3D surface_fit op

データ種: poly_surface × image2d × image2dimage2d

呼び出し: import fullseye as fs; fs.ledger.eval_poly_surface(model, x, y) (実装を直接呼ぶなら import match3d; match3d.eval_poly_surface(model, x, y)、台帳から引くなら ops3d.get("eval_poly_surface"))

使い方

model を (x,y) で評価 → z(x の shape で返す)。

*model* は :func:fit_poly_surface の返り(dict)。fail-closed: B スプライン

曲面/曲線の tck(FITPACK の list)を渡すと、以前は `model["degree"]` が

`TypeError: list indices must be integers...` で落ちていた(2026-09-01 実測 7 回)。

多項式モデルと B スプラインモデルは中身が違うので、ここで明示的に拒否する

(ops3d 台帳側でも poly_surface / bspline_surface と型を分けてある)。

Raises ValueError: model が多項式モデル dict でない / 必須キー欠落。

背景知識ガイド(この op の手前にある物理・規約)

blas_threads_and_memory — 行列分解が遅い理由の知識 — BLAS スレッド・キャッシュ・メモリ配置

参考(サンプルデータ・文献)

• サンプルデータ カタログ(DL URL / ライセンス) — 2-D は skimage.data(BSD/public)+ 合成、3-D は実データ源(Stanford/PDS 等)の DL URL。

• 演算子の来歴・参考文献 — この op 族の元になった研究/手法の出典。

実行できる例(この op を実際に呼ぶ検証済みサンプル)

contours_to_terrainpy -3.11 examples_3d/contours_to_terrain.py

型が繋がる次の op(image2d を入力に取れる)

fuse_to_voxel · fit_poly_surface · surface_form_error · background_flatten · polar_unwrap · fit_zernike · matcap_shade · antialias

同カテゴリ(surface_fit)

fit_poly_surface · surface_form_error · background_flatten


*Provenance: match3d.py — 3D operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。*

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