opencv/doc
Abhishek Gola aef6ae4872
Merge pull request #27396 from abhishek-gola:hdr_bug_fix
Fix NaNs in HDR Triangle Weights and Tonemapping and Update LDR Ground Truth in tutorial #27396

The PR closes #27392 

Updated the triangle weights to use a small epsilon value instead of zero to prevent NaN issues in HDR processing.
Also fixed a float-to-double division issue by explicitly casting double values to float, which was previously producing garbage values and leading to NaNs in tonemapping.

The current LDR ground truth image used in the tutorial [ldr.png](https://github.com/opencv/opencv/blob/4.x/doc/tutorials/others/images/ldr.png) was originally generated using TonemapDurand (check this commit 833f8d16fa), which was moved to opencv_contrib a long time ago in this commit: 742f22c09b. However, the current Tonemap implementation in OpenCV main only performs normalization and gamma correction, which produces noticeably different results. This PR updates the LDR grouth truth image in tutorial with the result of TonemapDrago, and tutorials to use TonemapDrago as Tonemap gives a darker image.

Tonemap output:
![ldr2](https://github.com/user-attachments/assets/e4f0cb97-ee4f-47b9-8962-2020ff211fd5)

TonemapDrago output:
![ldr](https://github.com/user-attachments/assets/4a898101-22bd-49e5-8db0-9e1062974ba3)


### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
2025-06-05 09:02:58 +03:00
..
images Assorted documentation fixes 2019-08-31 01:50:11 +03:00
js_tutorials Update js_houghcircles_HoughCirclesP.html 2025-04-04 17:36:42 +03:00
pattern_tools Svgfig library update to version 1.0.1 as it uses BSD-3 license. 2024-06-18 11:13:32 +03:00
py_tutorials Update old URL 2025-03-20 19:45:58 +00:00
tools Merge remote-tracking branch 'upstream/3.4' into merge-3.4 2021-04-15 20:50:26 +00:00
tutorials Merge pull request #27396 from abhishek-gola:hdr_bug_fix 2025-06-05 09:02:58 +03:00
acircles_pattern.png Update chessboard pattern image to remove squares overlap. Update also asymmetric pattern image. 2018-03-15 13:22:56 +01:00
bodybg.png Some documentation customization 2014-12-26 19:17:18 +03:00
charuco_board_pattern.png Merge pull request #23363 from vovka643:4.x_generate_charuco 2023-05-19 20:25:59 +03:00
CMakeLists.txt doc: upgraded for compatibility with doxygen 1.12 2024-12-09 23:08:18 +03:00
disabled_doc_warnings.txt Doxygen documentation: BiB references and fixes 2014-12-01 15:50:55 +03:00
Doxyfile.in doc: upgraded for compatibility with doxygen 1.12 2024-12-09 23:08:18 +03:00
DoxygenLayout.xml docs: move detail section of group to the top of the page 2024-02-19 08:13:22 +00:00
faq.markdown Migrated FAQ page to Github Wiki 2020-04-08 13:55:44 +03:00
footer.html doc: upgraded for compatibility with doxygen 1.12 2024-12-09 23:08:18 +03:00
header.html doc: upgraded for compatibility with doxygen 1.12 2024-12-09 23:08:18 +03:00
LICENSE_BSD.txt Merge pull request #18073 from vpisarev:apache2_license 2020-08-17 11:49:11 +00:00
LICENSE_CHANGE_NOTICE.txt Merge pull request #24521 from dkurt:fix_broken_urls 2023-11-11 09:06:10 +03:00
mymath.js doc: fix formulas in JavaDoc broken after Doxygen upgrade 2024-03-11 23:47:23 +03:00
mymath.sty Use camera intrinsic matrix everywhere. Add cameramatrix, distcoeffs and distcoeffsfisheye macros to avoid copy/paste errors. 2020-08-24 05:39:23 +02:00
opencv-logo2.png Updated the OpenCV logo 2020-07-28 18:31:21 +03:00
opencv-logo-small.png Updated the OpenCV logo 2020-07-28 18:31:21 +03:00
opencv-logo-white.png Updated the OpenCV logo 2020-07-28 18:31:21 +03:00
opencv-logo.md Added a note about OpenCV logo 2020-08-21 11:18:40 +03:00
opencv-logo.png Updated the OpenCV logo 2020-07-28 18:31:21 +03:00
opencv.bib Merge pull request #26299 from s-trinh:feat/getClosestEllipsePoints_2 2025-06-03 17:12:16 +03:00
opencv.ico Updated the OpenCV logo 2020-07-28 18:31:21 +03:00
opencv.jpg "atomic bomb" commit. Reorganized OpenCV directory structure 2010-05-11 17:44:00 +00:00
pattern.png Update chessboard pattern image to remove squares overlap. Update also asymmetric pattern image. 2018-03-15 13:22:56 +01:00
root.markdown.in Merge pull request #9466 from huningxin:js 2017-09-25 16:52:07 +03:00
stylesheet.css doc: upgraded for compatibility with doxygen 1.12 2024-12-09 23:08:18 +03:00
tutorial-utils.js Merge pull request #26340 from Kumataro:wa26339 2024-10-22 11:57:14 +03:00