depth_from_focus — 3D structured_light op

• Data kinds: images → depth

• Call: import fullseye as fs; fs.ledger.depth_from_focus(images, focus_positions=None) (implementation को सीधे call करना हो तो import ops3d; ops3d.depth_from_focus(images, focus_positions=None), registry से लेना हो तो ops3d.get("depth_from_focus"))

• Ledger के ज़रिए return value: fullseye.ledger.depth_from_focus(...) केवल घोषित out type depth का value लौटाता है (मूल function सहायक जानकारी भी लौटाता है)। जो हिस्सा छोड़ दिया गया है उसकी ज़रूरत हो तो fullseye.ledger.depth_from_focus.raw(...) का उपयोग करें, या ops3d.depth_from_focus को सीधे call करें।

• HALCON समकक्ष: depth_from_focus (अर्थ और parameters समझने के लिए HALCON reference उपयोगी है)

• GPU: नहीं (केवल CPU reference implementation)

उपयोग

अलग-अलग फ़ोकस वाली छवियों से प्रत्येक पिक्सेल की सर्वोत्तम फ़ोकस स्थिति को ऊँचाई/गहराई के रूप में अनुमानित करता है।

> नीचे का विस्तृत विवरण मूल text में है — सारांश और headings का अनुवाद हो चुका है।

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

पृष्ठभूमि guides (इस op के पीछे की physics और conventions)

• depth_sensors — Depth sensors — ranging के सिद्धांत, असली devices के आँकड़े, dropouts कैसे दिखते हैं

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• ftp_and_focus_depth — py -3.11 examples_3d/ftp_and_focus_depth.py

वे अगले ops जिनसे type जुड़ता है (depth को input के रूप में लेते हैं)

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

इसी category के (structured_light)

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


*Provenance: ops3d.py — 3D operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

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