lf_epi — LIGHTFIELD views op

Data kinds: lightfieldimage2d

Call: import lightfield; lightfield.lf_epi(lf, axis='u', index=0, view=None) (or opslightfield.get("lf_epi"))

Usage

Epipolar-plane image — the slice whose line slope is the disparity.

An EPI is what makes a light field different from a pile of photographs: fix

one image row and one angular row, and every scene point traces a *straight

line* whose gradient `dx/du is exactly its slope s`. Occlusion becomes

one line crossing in front of another, which is why EPI methods handle it

better than window matching.

• `axis="u" (horizontal): fix v = view` (default: the centre row,

`(V-1)//2) and image row y = index; returns E[u, x]` of shape

`(U, W)`.

• `axis="v" (vertical): fix u = view and image column x = index`;

returns `E[v, y] of shape (V, H)`.

Raises `ValueError`: *lf* not a valid light field, unknown *axis*,

*index* outside the spatial extent, *view* outside the angular extent.

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

poc_lightfield_depthpy -3.11 examples/poc_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_subaperture · lf_center_view · lf_views


*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.