summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-11-16 22:20:25 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-11-16 22:20:25 +0100
commitbb8696ba4e32bfc8cea2e41872f19b590fe782e7 (patch)
treea0b5c90fdf17350e2e90bca477857acb540ff586 /README.md
parent701bd32fc7392fbc9a77b0fc06804d180de3d766 (diff)
core: relax fit guard to the projection's true domain, not the 60 deg heuristic
The view-angle guard introduced earlier used get_view_angle() (60 deg for rectilinear) - but that is the C original's VISIBILITY heuristic ('peaks this far off center are usually outside the photo'), not the projection's domain. A wide-angle photo with half-FOV > 60 deg (ultrawide phones, stitched shots) legitimately shows peaks 60-85 deg off center; the TRUE fit got rejected, and whether the fitted center kept both markers under 60 deg depended on exactly where the markers were placed - the remaining placement-dependent 'fit failed' reports. The guard now uses the actual domain: +/-90 deg for rectilinear (the tangent flips sign beyond it), 180 deg for cylindrical. It still catches camera-looking-backwards solutions and grossly misplaced markers, now with the limit in the error message. Tests: rejection moved to 200 deg-apart markers (truly impossible); new test asserts a +/-70 deg wide-angle photo fits cleanly in rectilinear mode.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions