depth_from_focus — 3D structured_light op

• 資料種類:images → depth

• 呼叫: import fullseye as fs; fs.ledger.depth_from_focus(images, focus_positions=None)(要直接呼叫實作,import ops3d; ops3d.depth_from_focus(images, focus_positions=None);從台帳取用則 ops3d.get("depth_from_focus"))

• 經台帳呼叫的回傳值: fullseye.ledger.depth_from_focus(...) 只回傳宣告的 out 型別 depth 的值(底層函式還會回傳輔助資訊)。需要被捨棄的部分時,請用 fullseye.ledger.depth_from_focus.raw(...),或直接呼叫 ops3d.depth_from_focus。

• HALCON 對應:depth_from_focus(其含義與參數可參考 HALCON 手冊)

• GPU:無(僅 CPU 參考實作)

用法

根據不同焦點的影像,以每個像素的最佳對焦位置估計高度/深度。

> 以下的詳細說明為原文 —— 摘要與標題已翻譯。

「焦点を変えた画像から高さ」「ピントを変えた複数画像から深さ」を求める shape-from-focus の入口。詳細な信頼度が必要なら reconstruction.depth_from_focus を直接呼び sharpness も確認する。

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

• depth_sensors — 深度感測器知識 —— 測距原理、實機數值、缺測的表現

參考(範例資料、文獻)

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

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

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

• ftp_and_focus_depth — py -3.11 examples_3d/ftp_and_focus_depth.py

型別可銜接的下一個運算子(可接受 depth 作為輸入)

depth_to_points · tsdf_from_depth · to_points · fuse_to_voxel · depth_to_organized_points · normals_from_depth · occlusion_edges · bearing_angle_image

同類別(structured_light)

wrapped_phase · unwrap_phase_2d · graycode_decode · decode_fringe · fringe_ftp_phase · synthesize_fringes · absolute_phase · triangulate_column


*Provenance: ops3d.py — 3D 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*

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