lf_focal_stack — LIGHTFIELD refocus op

資料種類:lightfieldimages

呼叫:import lightfield; lightfield.lf_focal_stack(lf, slopes=(-2.0, -1.0, 0.0, 1.0, 2.0), *, interp='linear', edge='nearest')(或 opslightfield.get("lf_focal_stack"))

用法

在 *slopes* 的每個斜率上重聚焦 —— 一次曝光得到一整疊焦點堆疊。

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

Returns a `list of (H, W) images (the images` type), in the order

given, so :mod:focus_stack's fusion and any multi-image operator applies

unchanged. The physical camera equivalent is racking the focus N times; here

it costs one exposure and `len(slopes) * V * U` image shifts.

Raises `ValueError`: *lf* not a valid light field, *slopes* empty or

longer than :data:MAX_STACK_SLICES, any slope non-finite or over

:data:MAX_ABS_SLOPE, a stack larger than :data:MAX_STACK_ELEMENTS,

unknown *interp* / *edge*.

詳細使用指南

lightfield_depth 族使用指南

參考(範例資料・文獻)

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

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

• 演算法的正典(作者・年份)與用途見上面的族使用指南

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

lightfield_depthpy -3.11 examples/lightfield_depth.py

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

同類別(refocus)

lf_refocus · lf_aperture_mask · lf_synthetic_aperture


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

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