eval_poly_surface — 3D surface_fit op

• 資料種類:poly_surface × image2d × image2d → image2d

• 呼叫: 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"))

用法

在 (x,y) 處評估 model → z(按 x 的形狀回傳)。

*model* 是 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 / 缺少必要鍵。

背景知識指南(該運算子背後的物理與規範)

• blas_threads_and_memory — 矩陣分解為何慢 —— BLAS 執行緒、快取、記憶體配置

參考(範例資料、文獻)

• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。

• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。

可執行的範例(實際呼叫該運算子並已驗證的樣例)

• contours_to_terrain — py -3.11 examples_3d/contours_to_terrain.py

型別可銜接的下一個運算子(可接受 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 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*

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