Abhishek Gola 9178a4031f Merge pull request #31017 from kari-pikkarainen/fix/photo-mergerobertson-relative-tolerance
Photo_MergeRobertson.regression compares radiance values from 0.014 to 688 with one absolute limit of 6. The limit was 5, raised to 6 for AArch64 in 2017 and later for all platforms. The result measures 5.84 on ARM64 (Linux and macOS), 3% below the limit, while an error in a dark pixel cannot fail the test at all: 6 is 400 times the darkest value.

Radiance (.hdr) files store each pixel with one shared exponent, so every channel is only as precise as the pixel's brightest channel allows. The new checkEqualRelativeToPixelMax() divides each channel's error by that channel. Non-finite values in either image fail before the differences are reduced with minMaxLoc().
2026-12-02 16:53:01 +05:30
2020-02-26 15:12:45 +03:00
2018-10-11 17:57:51 +00:00
2025-08-01 09:50:10 +03:00

OpenCV: Open Source Computer Vision Library

Resources

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: all new work goes to 5.x, while 4.x accepts only bug fixes and other minor fixes;
  • Include tests and documentation;
  • Clean up "oops" commits before submitting;
  • Follow the coding style guide.

Additional Resources

Description
Languages
C++ 87.7%
C 3.1%
Python 2.9%
CMake 2%
Java 1.5%
Other 2.6%