mirror of
https://github.com/opencv/opencv.git
synced 2026-12-02 21:22:43 -06:00
3d0d984fb4292081dccb384249741b413df2796d
The Debevec response curve g is defined only up to an additive constant, which CalibrateDebevec fixes with one equation g(128) = 0 of weight 1 (as in Debevec and Malik's gsolve.m), while the data and smoothness equations are weighted by the hat function (up to 127) and lambda times it (up to 1270). The offset is therefore weakly constrained in the float32 least-squares solve, and rounding differences between builds shift the whole curve: depending on the build, response(128) is between 0.86 and 1.07 instead of 1. This is most likely the cause of the intermittent Photo_CalibrateDebevec.regression failure on Windows x64 (0.2147 > 0.15, see #30063). Weight the gauge equation with the hat weight of the middle value. The exact least-squares solution is unchanged; the float32 result now matches a float64 solve to 3e-4. Add a test that the middle value is fixed and drop the ARM-only and non-IPP relaxed thresholds of the regression test. Photo_CalibrateDebevec.bug_24966 now prints max_diff 1.31 and 1.15 on every build: the values of an exact float64 solve. The earlier, build-dependent values (0.98 to 1.25) included the offset noise. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenCV: Open Source Computer Vision Library
Resources
- Homepage: https://opencv.org
- Courses: https://opencv.org/courses
- Docs: https://docs.opencv.org/5.x/
- Q&A forum: https://forum.opencv.org
- previous forum (read only): http://answers.opencv.org
- Issue tracking: https://github.com/opencv/opencv/issues
- Additional OpenCV functionality: https://github.com/opencv/opencv_contrib
- Donate to OpenCV: https://opencv.org/support/
Contributing
Please read the contribution guidelines before starting work on a pull request.
Summary of the guidelines:
- One pull request per issue;
- Choose the right base branch;
- Include tests and documentation;
- Clean up "oops" commits before submitting;
- Follow the coding style guide.
Additional Resources
- Submit your OpenCV-based project for inclusion in Community Friday on opencv.org
- Subscribe to the OpenCV YouTube Channel featuring OpenCV Live, an hour-long streaming show
- Follow OpenCV on LinkedIn for daily posts showing the state-of-the-art in computer vision & AI
- Apply to be an OpenCV Volunteer to help organize events and online campaigns as well as amplify them
- Follow OpenCV on Mastodon in the Fediverse
- Follow OpenCV on X
- OpenCV.ai: Computer Vision and AI development services from the OpenCV team.
Description
Languages
C++
87.7%
C
3.1%
Python
2.9%
CMake
2%
Java
1.5%
Other
2.6%