bridge op• Data kinds: image → lightfield
• Call: fullseye.apply(img, "img_to_lightfield", a=0.5, b=0.5) (the 2-D model is one image plus two scalar knobs a,b∈[0,1])

*The figure is the actual output on a synthetic 128×128 input. Left: input, right: output. Point clouds are drawn as a top-down scatter (brightness = z), 1-D series as a line plot, volumes as the maximum-intensity projection along z, videos as the middle frame, complex images as magnitude; return values that are not pictures are shown as the values themselves.*
Sweeping knob a (0.1 / 0.5 / 0.9, the other knob at its default):
▸ img_to_lightfield: knob a sweep (docs site)
Sweeping knob b (0.1 / 0.5 / 0.9, the other knob at its default):
▸ img_to_lightfield: knob b sweep (docs site)
On other images (synthetic scene / photo / coins. Top row: inputs, bottom row: their outputs. Knobs at default):
▸ img_to_lightfield: other inputs (docs site)
*The 4th column is a colour (H,W,3) input. This op handles colour without crossing channels (it does not convolve the colour channel as a third spatial axis).*
Motion (GIF: frames / views / slices in turn. The still figure is the complete one; the GIF is supplementary):

Split the image into a foreground and a background layer and build a 4-D light field (V,U,H,W) with parallax.
> The detailed description below is the original text — the summary and the headings are translated.
`lf_synthesize と同じ前方モデルの 2 層版: 視点 (v, u)` は層ごとに
`(slope * (v - v_c), slope * (u - u_c))` だけ画像をずらして見る(線形補間、
縁は最近傍)。背景層は傾き 0(無限遠)、前景層(しきい値以上の画素)は傾き
`slope` で、前景が背景を遮蔽する(視点ごとにマスクもずらす)。
変位が角度インデックスに線形なので、EPI の傾き・リフォーカスの最良スロープ・
両端視点の視差 `slope * (U - 1)` がすべて閉形式で分かる。
• `a → 前景の傾き slope = 1.5 * a` 画素/視点(a=0.5 で 0.75。5×5 なら
両端で 3 px)。
• `b → 前景のしきい値 thr = b(img >= thr` が前景。b=0.5 で明るい部分)。
• 角度サンプルは `LF_ANGULAR = (5, 5)。返り値 (5, 5, H, W)` float64。
• 中央視点 `(2, 2)` は入力そのもの(ずれ 0)。
使いどころ: `tb_lf_epi / tb_lf_refocus / tb_lf_depth_from_focus` の入口。
深度推定の答えは「前景 = slope、背景 = 0」の 2 値。
• gallery2d_bridge family guide
• 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.
The program below has been verified to run (same input as the figure). In Studio's help this block becomes buttons that load and run it on the spot.
img_to_lightfield 0.50 0.50
▸ Load this pipeline · Load & run
• gallery2d_bridge — py -3.11 examples/gallery2d_bridge.py
lightfield as input)identity · tb_lf_to_mla · tb_lf_subaperture · tb_lf_center_view · tb_lf_epi · tb_lf_refocus · tb_lf_synthetic_aperture · tb_lf_depth_from_focus
bridge)img_to_points · img_to_keypoints · img_to_signal · img_to_projection_profile · img_to_counts · img_to_matrix · img_to_video · img_to_volume
*Provenance: ops.py — 2D 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.