Beep6581 / RawTherapee

A powerful cross-platform raw photo processing program
https://rawtherapee.com
GNU General Public License v3.0
2.77k stars 313 forks source link

contrast slider for luminance denoise? #4850

Open agriggio opened 5 years ago

agriggio commented 5 years ago

Just a quick idea: would it be possible to use a contrast-based mask for modulating the luminance denoise amount, similarly to what is done for sharpening and dual demosaicing? For example, it could control the effect of the "detail" slider in the denoise module. What do you think @heckflosse? Does this make sense?

heckflosse commented 5 years ago

@agriggio The current implementation of the contrast-based mask can be used everywhere to blend before/after Lab L-channels. In your use case that would be before/after luminance denoise detail. Just try it. It's easy to use ;-)

The mask is built here: https://github.com/Beep6581/RawTherapee/blob/dev/rtengine/rt_algo.cc#L193

And here's how it's applied: https://github.com/Beep6581/RawTherapee/blob/dev/rtengine/ipsharpen.cc#L207