refocus op• 資料種類:lightfield → images
• 呼叫: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*.
• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。
• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。
• 演算法的正典(作者・年份)與用途見上面的族使用指南。
• lightfield_depth — py -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.