I created a Pull Request to take into account the improvement of Dehaze designed by Ingo in 2020.
Issue 5769
I only added “Dehaze” checkbox in Raw black point (Bayer and X-trans), and of course the whole process to update the sliders. (improccoordinator, rtengine, etc.).
I quote Ingo’s text to introduce this new concept
I made some tries with a very simple method to remove haze (and uniform lens flare) from raw files. Well, at least partly. It’s a good starting point to add the already existing dehaze tool in RT.
The method is super simple. It just calculates the mininum value from each raw channel and subtracts that value from the corresponding channel.
The idea behind this approach is:
If there is a region in the scene, which does not reflect enough light to the camera sensor, to be recorded by the sensor, then, if there is a sensor value > 0, this value must be caused by haze or flare and not by the scene.
Having this situation and assuming the haze or flare is somehow evenly distributed, we can just subtract it, and surprisingly, it works very well for long distance landscape shots, where there is a lot of haze between camera and subject, and maybe also a lot of flare (internal lens reflections) by using a long focal length which are more prone to internal reflections.
Of course we can not use this method for every image.
1. It does not work on high-iso files where the minimum value is always around zero because of noise
2. it does not work on underexposed files for the same reason
I just works for the conditions I described above.
Executables
https://github.com/Beep6581/RawTherapee/releases/tag/pre-dev-github-actions
Jacques