refocus oplightfield → imagesimport fullseye as fs; fs.ledger.lf_focal_stack(lf, slopes=(-2.0, -1.0, 0.0, 1.0, 2.0), *, interp='linear', edge='nearest') (実装を直接呼ぶなら 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"))Refocus at every slope in slopes — a focal stack from one exposure.
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.
py -3.11 examples/lightfield_depth.pyimages を入力に取れる)—
refocus)lf_refocus · lf_aperture_mask · lf_synthetic_aperture
Provenance: lightfield.py — LIGHTFIELD operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.