diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-11-16 23:08:41 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-11-16 23:08:41 +0100 |
| commit | 52084b49a323ae9a974e2787fe034a06be3ae758 (patch) | |
| tree | 685d8d45908362d8852bdf96eabca0f17685250f /dist/wipfel/index.html | |
| parent | 45f4d6b2ebcd52857f9ecc480a6fdcb11cb6e24d (diff) | |
core: pre-check same-side feasibility, suggest panorama mode up front
For a rectilinear image, two markers with azimuth separation D that sit
on the SAME side of the image center must obey
|x_far / x_near| >= tan^2(45deg + D/2)
(the minimum of tan(u+D)/tan(u) over all valid view centers). Below
that no center/scale exists - the typical cause being a panorama
(linear pixel spacing) fitted in rectilinear mode.
comp_params now tests every marker pair against this bound BEFORE the
optimizer runs and answers e.g.
SAEULING and ZUGSPITZE are 80.4 deg apart in azimuth but only 22.7x
apart in the image (both right of center); rectilinear geometry
needs at least 140x for a pair this wide. This looks like a panorama
- switch to cylindrical mode, or place the view center between the
peaks.
The bound diverges as D -> 90 deg, so same-side pairs 90+ deg apart are
correctly always rejected. A 10% tolerance absorbs the elevation/pitch/
distortion perturbations of the pure-tangent model; the RMS guard from
the previous commit remains as the backstop for other unsatisfiable
marker sets (e.g. y-inconsistent placements).
Tests: the user's captured panorama markers now produce the panorama
hint in rectilinear mode and fit exactly in cylindrical mode; a
same-side pair is verified to fit just above the ratio bound and be
named-and-rejected just below it.
Diffstat (limited to 'dist/wipfel/index.html')
0 files changed, 0 insertions, 0 deletions
