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.