lights_fit_from_sphere — DRIVE tacscalib op

• Data kinds: rgb × normalmap × image2d → table

• Call: import fullseye as fs; fs.ledger.lights_fit_from_sphere(diffs, normals, masks, order: 'int' = 0) -> 'dict' (to call the implementation directly, import tacscalib; tacscalib.lights_fit_from_sphere(diffs, normals, masks, order: 'int' = 0) -> 'dict'; from the registry, opsdrive.get("lights_fit_from_sphere"))

Usage

Solves a per-channel linear Lambertian model by least squares from background-subtracted images (1 image or a sequence) and known normals.

> The detailed description below is the original text — the summary and the headings are translated.

order=0: I_c = a_c + l_c · n(3 チャネル × 4 = 12 パラメタ)。order=2(診断用): 4 つの係数それぞれが位置の 2 次式(チャネルあたり 24、計 72 パラメタ)—— 線形模型の残差が「照明の非一様」か「反射の非線形」かを分ける。diffs (H, W, 3) かその列、normals (H, W, 3) の列、masks (H, W) bool の列。

返り: order、L (3, 3)(行 c = l_c、長さ = チャネルの強度。order 2 は画像中心の値)、ambient (3,)、rms (3,) (当てはめ残差)、n_rows(使った画素数)、cond(設計行列の条件数)、order 2 は coef (4, 6, 3) と image_shape。Raises ValueError: 列の長さ・形の不一致 / order が 0・2 以外 / 画素が未知数より少ない / 法線が退化(平面上)。

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)

• poc_tacscalib_sphere_lut — py -3.11 examples/poc_tacscalib_sphere_lut.py

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

course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same

Same category (tacscalib)

calib_pack_load · sphere_normals_known · membrane_predict_rgb · gradient_lut_build · gradient_lut_invert · normal_error_map · sphere_cap_height · field_position_sweep


*Provenance: tacscalib.py — DRIVE 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.