Solve LED curves into camera calibration updates

This commit is contained in:
Meta Vens 2026-05-31 02:05:27 +01:00
commit 43e0f91f6a
7 changed files with 440 additions and 50 deletions

View file

@ -382,10 +382,14 @@ a named invariant that the native runtime cannot protect yet.
`BuildLedSplineCandidateFrame` lowers that curve as deterministic
camera-sensor Feature evidence, and `--led-spline-calibration-smoke` proves
Fensalir plans it as one `DebugOverlay` packet with no deferred request.
`MimirVisualCalibrationResidualSolver` is the first higher-level owner shape:
it compares coded/indexed observations across camera frustums and emits
residual reports, but it does not write camera pose until the calibration
state contract exists. This is calibration evidence only. Exact
`MimirLedSplineCurveSolver` now owns the first per-sensor curve solve from
bright LED detections into ordered image/clipspace samples. `MimirCameraRigCalibrationSolver`
owns the next bounded pose step: given stable LED indices plus a scene-space
LED curve anchor, it fits camera translation updates by minimizing ray-to-
curve distance from each local frustum. The smoke synthesizes a scene curve,
projects it through two camera frustums, solves the curves back out of the
detections, and recovers bounded camera-position updates with near-zero ray
residual. Rotation and intrinsics fitting remain explicit future work. Exact
correspondence requires coded or otherwise stable LED identity; uncoded
repeated lights remain curve constraints until the global residual solver
resolves them.

View file

@ -10,9 +10,9 @@ flowchart TD
C["Leap stereo IR driver"] --> B
B --> D["native reservoir handles"]
D --> E["Fensalir GPU feature extraction"]
E --> J["LED spline observations in local clipspace"]
E --> J["per-sensor LED curve solve"]
E --> F["cross-view matching + flow"]
J --> K["global residual calibration owner"]
J --> K["camera rig calibration solver"]
K --> F
F --> G["surface/material claims"]
G --> H["brush/splat render budget"]
@ -33,6 +33,9 @@ flowchart TD
- Stable LED index identity requires temporal/color/address coding or another
correspondence source; uncoded identical lights are spline constraints, not
metric depth authority.
- The first camera-rig solver fits bounded camera translation updates from a
scene-anchored LED curve by minimizing ray-to-curve distance. Rotation,
intrinsics, and distortion are future owners.
- Once camera frustums are coherent, every detected surface candidate can be
resampled across the synchronized view set before Fensalir resolves it into
spatiotemporal surface/splat claims.