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) (to call the implementation directly, import ops3d; ops3d.depth_from_focus(images, focus_positions=None); from the registry, ops3d.get("depth_from_focus"))

• Return value through the ledger: fullseye.ledger.depth_from_focus(...) returns only the declared out type depth (the underlying function also returns auxiliary values). When you need what was dropped, use fullseye.ledger.depth_from_focus.raw(...) or call ops3d.depth_from_focus directly.

• GPU: none (CPU reference implementation only)

Usage

Estimate height/depth from differently focused images as the best-focus position at each pixel.

> The detailed description below is the original text — the summary and the headings are translated.

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

Background guides (the physics and conventions behind this op)

• depth_sensors — Depth sensors — ranging principles, real-device figures, how dropouts appear

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

Runnable examples (verified samples that actually call this op)

• ftp_and_focus_depth — py -3.11 examples_3d/ftp_and_focus_depth.py

Ops the type connects to (they accept depth as input)

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

Same 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. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

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