diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-11-12 22:51:46 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-11-12 22:51:46 +0100 |
| commit | 6902c44a6e0b9dc591923da203e2d9983458cd4c (patch) | |
| tree | 1c0b6c2527a4ad4364291e2bc619929053aa66dc /gipfel-droid/.gradle/buildOutputCleanup/cache.properties | |
| parent | d34f271864c98c67b0bd403f7e1b7e01b55bf8ef (diff) | |
core: fix fit for wide panoramas (markers >180 deg apart in image)
The initial guess in comp_params assumed the two markers are less than
180 deg apart: a_center started on the first marker and the scale came
from the shortest-arc azimuth difference. In panoramas wider than
180 deg the markers can straddle the seam - e.g. at -170 deg and
+170 deg of the view center they are 340 deg apart in the image but
only 20 deg on the compass. The start was then off by up to 170 deg in
azimuth and a factor of 17 in scale, and the fit never recovered.
Fix: derive the image-space azimuth difference from the SIGN OF THE
PIXEL DIFFERENCE (the user's marker placement tells us which branch
was meant; the magnitude is unique modulo 2pi for panoramas below
360 deg), and start the view center between the markers in that
branch.
The golden fit tests now compare a_center modulo 2pi: the C harness
settles wherever its >2pi input azimuths put it (380 deg), the Rust
port normalizes (20 deg) - same physical solution.
Tests: fits with markers 340 deg apart, 350 deg apart in reversed
marker order, and 200 deg apart (just over the seam). All three fail
without the fix (verified), pass with it.
Diffstat (limited to 'gipfel-droid/.gradle/buildOutputCleanup/cache.properties')
0 files changed, 0 insertions, 0 deletions
