diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-11-16 22:13:08 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-11-16 22:13:08 +0100 |
| commit | 701bd32fc7392fbc9a77b0fc06804d180de3d766 (patch) | |
| tree | 7ac266d83af703b5e786ea9f96fff5ff84f122bc /gipfel-droid/.gradle/8.11.1/fileChanges | |
| parent | b7fbbedfdc4f5d2842d9f7f467856749b4ea98b1 (diff) | |
core: multi-start the two-marker fit to kill basin roulette
The exactly-determined two-marker system (4 residuals, 4 parameters)
has multiple solution basins: the tangent repeats every 180 deg in the
view center (a camera looking the opposite way projects identically),
and pitch/roll can absorb marker y errors. With a single start, the
basin the optimizer landed in depended on where the user last dragged
a marker - so the new view-angle guard fired 'randomly', and moving a
marker vertically could flip success and failure.
comp_params now runs the level-1 fit from a small seed set and keeps
the lowest-cost result:
* scale seeds: the linear estimate plus a tangent-aware variant
(rectilinear geometry puts dx = s * 2 * tan(d/2), which the linear
estimate underestimates by up to 60% at wide spans)
* pitch seeds: zero plus a y-derived estimate (tan p ~ tan elev + y/s
per marker, averaged) instead of always starting at pitch 0
lm/lsq now return the final cost for the comparison. Golden fits
unaffected; all 38 core + 13 golden tests pass.
Diffstat (limited to 'gipfel-droid/.gradle/8.11.1/fileChanges')
0 files changed, 0 insertions, 0 deletions
