4
\$\begingroup\$

I am using Darktable as my RAW processing software. In darker pictures that have been taken with an ISO of 800 or more, I frequently encounter great issues with luminance noise.

The following two images (one of clouds and one of pure sky) are cuts from a recent photo that I took. There clearly is some noise, especially in the second picture. Clouds raw Sky raw

After doing some standard edits like changing exposure and adding contrast, the noise becomes more notable as can be seen in the next two images. Here, color denoising was already applied but nothing for luminance. Clouds in Darktable (no denoise) Sky in Darktable (no denoise)

And finally, this is what Darktable's denoising filter makes of this. There are heavy artifacts that are arguably even worse than the original noise. Clouds in Darktable (denoised) Sky in Darktable (denoised)

Those artifacts look similar to what a phone camera puts out when you take a picture too dark with it, so I assume it's not a completely obscure problem that I am encountering here.

When I tried to replicate something similar in Adobe Lightroom, the denoising was so much better (see next two images). So apparently, it is possible to implement a better denoising procedure in theory. Clouds in Lightroom Sky in Lightroom

I wonder, is there a step that I am missing in my editing workflow which causes these artifacts to be there, or is it simply a bad algorithm that is used by Darktable and there is nothing I can do to improve the image?

\$\endgroup\$
7
  • 2
    \$\begingroup\$ See How do I reduce the noise in this image / prevent noise in future images? and What is noise in a digital photograph? \$\endgroup\$
    – xiota
    Commented Oct 30, 2018 at 1:25
  • \$\begingroup\$ Sorry, I should have made it clear that I in my title I was referring to the artifacts introduced by Darktable, not the white noise from the camera. \$\endgroup\$
    – Andreas T
    Commented Oct 30, 2018 at 13:42
  • \$\begingroup\$ It's not clear what "artifacts" you are referring to. Can you describe them? \$\endgroup\$
    – xiota
    Commented Oct 30, 2018 at 20:46
  • \$\begingroup\$ Those in the 5th and 6th picture, compared to the 7th and 8th. \$\endgroup\$
    – Andreas T
    Commented Oct 30, 2018 at 21:15
  • 1
    \$\begingroup\$ Is it possible you have some raw images you could share so we could work through the same process with the same images? \$\endgroup\$
    – user67208
    Commented Nov 13, 2018 at 22:30

4 Answers 4

3
\$\begingroup\$

Many of darktable's algorithms are significantly different from those typically used by other image processing programs. If you cannot get the results you want from darktable, consider trying other raw processing software, such as RawTherapee or UFRaw.

  • The images are consistent with the use of noise reduction filters with different "strengths", where the darktable filter is much stronger than the one from Lightroom. If there are user-adjustable parameters in darktable, try changing them to reduce the strength of the filter.

  • Different algorithms detect and treat noise differently. The darktable images have some characteristics that are consistent with median averaging.

  • Some processing steps, such as increasing contrast and sharpening, are known to increase the appearance of noise. The darktable images appear to at least have had a greater contrast boost than the Lightroom images.

\$\endgroup\$
1
  • \$\begingroup\$ I wouldn't say it's too strong or rather that that is not the only issue. Too much denoising in LR just makes the image blurry, it doesn't introduce new artifacts. I also tried "all" possible values for denoise in Darktable and it's either not strong enough (meaning there is still noise to be seen) or the artifacts appear. \$\endgroup\$
    – Andreas T
    Commented Oct 30, 2018 at 13:39
3
\$\begingroup\$

My guess is you're using denoise (profiled). If so, then you should read darktable's manual section on profiled denoise.

At the time of my original reply the recommendation was to use 2 instances of the module to avoid the effect shown in your examples above with their characteristic look (smeared and "painterly"):

  • Use non-local means for luma noise, combined with blend mode ligthness or HSV lightness.
  • Use wavelet for chroma noise, blend mode color or HSV color.

This would still work if using older version of darktable (pre-3.6); in this case you would apply two instances of denoise-profiled, one to reduce luma noise the other to reduce chroma noise, with opacity of the blending ranging from 30 to 100%.

With darktable 3.6 this is no longer recommended and using the wavelets algorithm in Y0U0V0 color mode you can now reduce luma and chroma noise with one instance.

The results are equal and sometimes better than what I used to achieve with Lightroom. Lightroom's NR is obviously easier to use.

\$\endgroup\$
3
  • \$\begingroup\$ What you described (two instances of profiled denoise with different blends) is exactly what I did as well. \$\endgroup\$
    – Andreas T
    Commented Jan 4, 2019 at 10:07
  • \$\begingroup\$ You could also try the other non-profiled denoise modules Darktable has. YMMV of course. As another alternative, you could give RawTherapee a try. In my experience, the denoise algorithms there seem to often give somewhat better results on high-ISO images, at least from my camera. \$\endgroup\$
    – twalberg
    Commented Jun 11, 2019 at 20:13
  • \$\begingroup\$ file not found darktable.org/usermanual/en/… \$\endgroup\$
    – Soleil
    Commented Apr 1, 2021 at 13:02
1
\$\begingroup\$

By curiosity, I tried the state of the art denoiser BM3D [0] on the very first image from the OP; I used as parameters a putative white noise with variance of 0.0012, and find the result excellent: The color and luminance noise are gone and the fine structures of the clouds are revealed.

gw_0.0012

[0] Mäkinen, Ymir, Lucio Azzari, and Alessandro Foi. "Exact transform-domain noise variance for collaborative filtering of stationary correlated noise." 2019 IEEE International Conference on Image Processing (ICIP). IEEE, 2019.

\$\endgroup\$
0
\$\begingroup\$

Denoising basically replaces each pixel with a weighted average of itself plus the neighboring pixels.

There are multiple parameters, and in LightRoom, you can set them independantly: the size of the circle of pixels that are considered, the weighting of the pixels based on distance, and the aggressiveness / strength of the overall approach.
From my experience, the default settings are pretty well chosen in LR, so you simply move the slider until you like the result. I don't know DR well enough to compare, but probably it has similar or equal settings available somewhere.

\$\endgroup\$
1
  • \$\begingroup\$ The "basically" in your first sentence seems to be the key point, as Darktable slightly moved away from that already with non-local means and Lightroom probably even more so. Unfortunately, Lightroom is of course proprietary software, so there is no documentation about what kind of algorithm it uses. I could not replicate any similar effect for the denoise in Darktable by just playing around with the sliders. \$\endgroup\$
    – Andreas T
    Commented Oct 30, 2018 at 13:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.