lf_subaperture — LIGHTFIELD views op

Data kinds: lightfieldimage2d

Call: import lightfield; lightfield.lf_subaperture(lf, v=0, u=0) (or opslightfield.get("lf_subaperture"))

Usage

One sub-aperture view — the image seen through one point of the pupil.

Returns a copy of `L[v, u] as a plain (H, W)` 2-D image, so every

other fullseye image operator applies to it unchanged. Indices are

not wrapped: a negative or out-of-range index is a `ValueError`, not a

silent Python wrap-around to the opposite corner of the pupil (which is the

single easiest way to get a mirrored disparity sign downstream).

Raises `ValueError`: *lf* not a valid light field, and *v* / *u* not

an int in `[0, V) / [0, U)`.

Detailed usage guide

lightfield_depth family guide

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.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

lightfield_depthpy -3.11 examples/lightfield_depth.py

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

lf_from_mla · lf_disparity_to_depth · lf_all_in_focus

Same category (views)

lf_center_view · lf_views · lf_epi


*Provenance: lightfield.py — LIGHTFIELD 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.