diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-11-16 21:49:01 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-11-16 21:49:01 +0100 |
| commit | ff25068fa8696180a935f735f4535c65e331e9c0 (patch) | |
| tree | 15f160531821612b170cbf385a73ca886e36d685 /tests/golden/test.jpg | |
| parent | fe019c4c5b2d9598c3a95acaf79ffce3bf0587f9 (diff) | |
web: refit view parameters when switching projection
View parameters are projection-specific: a cylindrical scale is
linear in azimuth, a rectilinear one tangent-based. Switching
projections kept the old parameters, so the display reinterpreted
them; the first marker drag then refit in the NEW projection,
converging to parameters that are valid there but garbage for the
other one - and switching back showed that garbage until yet another
refit happened to save it (exactly the reported panorama -> rect ->
drag -> back -> crazy -> tiny-drag-fixes-it chain).
* web: the projection dropdown now refits to the markers right after
switching (no-op without markers), so parameters always match the
active projection.
* core: the wide-branch initial guess (markers >180 deg apart in the
image, chosen by the sign of the pixel difference) is now gated to
projections that can show more than a half-plane. Rectilinear
(120 deg max view) always uses the shortest arc.
* regression test: panorama fit -> rectilinear interlude -> refit
recovers the panorama parameters exactly.
Diffstat (limited to 'tests/golden/test.jpg')
0 files changed, 0 insertions, 0 deletions
