How to get Darktable sharpness to match Lightroom

I’ve been comparing the sharpness of darktable photos of my Sony A7Riii RAW files compared to Capture One 23 and Lightroom and cannot achieve the same image quality sharpness? in Darktable.

I’m applying basic sharpening in Darktable and using a scene referred workflow, and perhaps a bit of contrast equaliser sometimes - I’m not using the sharpen and diffuse module because it just brings my Mac to its knees in terms of cpu use and its UI is unfathomable to me at present, though am open to learning. The point is, by default LR and C1 seem to extract more detail out of my photos without any effort - and don’t know how to get Darktable to achieve the same clarity and sharpness. I would appreciate any advice on how to get Darktable to match LR quality - or perhaps some acknowledgement that Darktable’s RAW engine is not quite as good as the commercial offerrings?

Provisos - yes I am pixel peeping at ridiculous levels. Yes Capture One defaults are over sharpened and often quite brutal.

Attached are four comparisons of a zoomed in crop - Darktable on the left, Capture One in the middle, Lightroom on the right. LR wins for me in all cases. I wish Darktable would win! The zoomed comparison jpegs and raw files available at Dropbox - sharpness topic - Simplify your life




The amount of sharpness you believe is best is very much a personal preference. I find the DT tools for sharpening exceptional. In your sample images here the capture one settings you have chosen are excessive in my opinion. LR looks OK here. DT can do an equally good job and its processing abilities in my opinion exceed LR’s.

My preferred sharpening steps in DT are to apply the diffuse or sharpen presets for ‘sharpening demosaicing’ as a starting point. Note that AA filter does a stronger sharpening here, but the intention is to match the type of camera sensor you have. Next I like to use the local contrast module, which in my opinion works similar to the clarity slider in Lightroom. If I want additional sharpening then I return to the Diffuse or sharpen module and select one of the lens deblur presets.

There are other modules such as contrast equalizer and the sharpen module which I may sometimes choose to use. If you come from a LR background you may have learnt to sharpen at 100% magnification to see the effect. This is actually not recommended with DT as LR is using a preview where DT is actually applying the true corrections and hence the slower response. Leave sharpening to the end of the workflow and this helps with the speed issue.

Sorry, but in my opinion if you want to be fair to DT then you have to use its best modules which include the diffuse or sharpen module.

Welcome to the forum.

3 Likes

You could try Ansel which is a fork of DT and it may (or may not) respond quicker on your computer compared to DT. Ansel

Just post a raw file and have people sharpen it and try to guage it…sorry I didnt’ find the examples too useful for a proper comparison…too much was over contrasted and blown out to really assess sharpness…

Edit I see you have used Dropbox, sorry… but you dont’ need to you can just upload them…

Diffuse and sharpen is a very interesting (and powerful) tool. My previous laptop would also struggle with applying it, particularly if I mistyped a number in one of the dialogs. For iterations, I’ve found no value in numbers greater than about 4 or 5 and often stick to a 3.

I’d suggest you try it.

I also see that in the comparisons, the DT image is a little darker than the other 2. I’m uncertain what you mean by “pixel peeping at ridiculous levels” - does this mean the images you posted are crops at more than 100%?

I am by no means an expert at DT, but I tried a few settings and got a result that to my eye matched LR. I noted that I had to adjust colours to match those of LR/C1.

I’ve uploaded my sidecar file for you to try, and see what I did. I applied a little sharpening first, and then used the diffuse and sharpen module and zoomed in to check my work at up to 200%.

I hope it’s of value to you. But I’m open to further discussion on this - I’m sure I’ll learn something from it.

Cheers,

Michael P.

DSC04669.ARW.xmp (7.3 KB)

Does this mean you’re using the Sharpen module? IMHO that’s the worst one. Try some of the presets of diffuse or sharpen, I haven’t found the need to tweak them, but that’s down to personal preference and equipment.

Diffuse or Sharpen is definitely the way!

Think of it as a layered process, from the bottom up it should be going from coarse to fine details. I would suggest (as others have), to use the following presets
dehaze → lens deblur → sharpening demosaicing

It will probably be more sharp then it needs to be (I rarely use all three with full effect - actually I have my own presets, which are adapted to my taste), so they can be tuned down a bit (lower iterations/lower speed/higher edge threshold).
If this all fails, you might try the contrast equalizer on top.

As a sidenote, at the beginning of my darktable career I also struggelt with sharpness in comparison to lightroom. But using the modules as described, I don’t have this issue anymore. Pictures are now plenty sharp (if I need that, what I actually don’t do most times!).

P.S. In some pictures it can be beneficial, to change the demosaicing algorithm. I find ‘amaze+vng’ 0.35 gives often a good result. But try for yourself. I’m seeing improvements in fine details of bird feathers or forest leaves in the distance, …

You can also try the highpass module. See darktable 4.2 user manual - highpass.

Also, don’t forget that if you process raw images, darktable gives you an option to mask based on input detail level. You could avoid increasing noise in flat areas, and concentrate on edges and areas rich in details. See ‘details threshold’ at darktable 4.2 user manual - mask refinement & additional controls.

With diffuse or sharpen, you can use the presets marked here (I own old cameras that have anti-aliasing filters):
image

1st (bottom) instance is local contrast, 2nd is the sharpen demosaicing. Very rarely, I use the lens deblur presets, too (usually masked).

3 Likes

To be honest, I’ve never really worried to much about sharpness at these levels, so I might not be the best to answer. I don’t have a camera with such a high resolution either… :smile:
Having said that, I was a little surprised that I could not get a match to your Lr version using diffuse and sharpen.
I recently upgraded to a GTX1650 and D&S is quite snappy (relatively). I still don’t fully understand how to fine tune D&S to be honest, but I’m usually very satisfied with the presets.

Anyway, I settled for using D&S set to the sharpen demosaicing (no AA filter) preset, which doesn’t tax the system much either, then I used contrast eq for the rest. I think this looks ok.
DSC04669
DSC04669.ARW.xmp (10.7 KB)

Interesting topic - I don’t know what kind of algorithm Lr uses for sharpening.

Hmmm. that doesn’t look quite as sharp as I wanted. Here’s another one with a second instance of contrast eq. It might seem a bother, but if you actually wanted this it would be easy to make a style that applies as many sharpening modules as wanted in one click.
DSC04669_01
DSC04669.ARW-01.xmp (11.6 KB)
I’m running a recent dt 4.3 - just in case my .xmp doesn’t work, my contrast eq looks like this:
image
and this:
image

5 Likes

The C1 images also are more contrasty, which increases the perception of sharpness. (See, for example, Still need 'sharpen' module after D&S ? - #14 by rvietor).
In the bottom image, the middle one (from C1) looks horribly oversharpend to me when viewed 1:1.

DSC04771.ARW.xmp (9.9 KB)

Or 3 instances of old-school sharpen, with different radii and amounts:

Or contrast equalizer:

This discussion is so useful. Thanks everyone!

1 Like

Only as a small addition a simplified diagram about two important controllers at diffuse and sharpen module with which one - in contrast to other modules for sharpening - can hold the artifacts very well in check:

6 Likes

As some one mentioned you can use the details threshold setting of masking and really dial in the sharpening so that you can be far more aggressive if that is your choice… then you can then make it as crispy as you like to the point that your image looks like it is dehydrating… :slight_smile:

Sharpness wise I was never really happy with my A7III files in DT until the diffuse or sharpen module, just the aa filter preset gives the perfect starting point. I can then use more instances with different presets or use local contrast and contrast equaliser to get the results I’m after, which most of the time would be sharp but not over sharp.

1 Like

Have you ever tested this “hypothesis of being faster”? :slight_smile: “Someone” is claiming so be removing things but on the other side no dt stuff that really helps here a lot (especially on master) has been ported.

5 Likes

Just playing around now with some of my images because my monitor came with three months of Adobe CC and I’ve got the free version of C1. LR over does the sharpening imo, I’m having to tone that and the contrast down. C1 over does it as well but it looks better and not as much toning down needed.

Another thing to keep in mind is that DT does not sharpen after resize when exporing, which means that exported JPEGs may lose a bit of sharpness compared to what is shown in the darkroom. There’s a Lua script to sharpen on export but I haven’t had time to test it yet.