Project

General

Profile

Bug #9112

Vignetting

Added by Pascal Obry about 7 years ago.

Status:
Fixed
Priority:
Low
Category:
Darkroom
Start date:
12/03/2012
Due date:
% Done:

100%

Estimated time:
Affected Version:
git development version
System:
bitness:
64-bit
hardware architecture:
amd64/x86

Description

Looks like the vignetting module is creating "banding". I have first seen this with D800 RAW but it can easily be reproduced with standard jpeg. I have attached a jpeg with plain 40% gray. Import this image and activate the vignetting module. At the inner of the vignette the banding is quite visible in Darkroom and it is also quite visible in the exported jpeg.

I have used extensively Lightroom and never noticed such issue. Do you think this can be fixed somehow?

grey-40.jpg (104 KB) grey-40.jpg Pascal Obry, 12/03/2012 09:34 AM
img_0001.jpg (43.6 KB) img_0001.jpg Pascal Obry, 12/03/2012 05:34 PM
grey-40-lightroom.jpg (124 KB) grey-40-lightroom.jpg Pascal Obry, 12/03/2012 06:30 PM
grey-40-lightroom-2.jpg (59.5 KB) grey-40-lightroom-2.jpg Pascal Obry, 12/03/2012 06:38 PM

History

#1 Updated by Ulrich Pegelow about 7 years ago

Pascal,

I don't see banding in the image you attached. However I think I have an idea where your observation
comes from. It is most likely an unwanted side effect of monitor calibration. I see the same here sometimes
when adding vignetting to a b&w image.

To my understanding the main cause is the limited bit depth (8 bits per channel) between graphics card and
monitor and - consequently - in the calibration curve (vcgt) on your card. For most monitors the curves for
R, G, and B will clearly diverge. These differences combined with a limited bit depth cause aliasing effects
which you see as color banding. That should be especially visible in gradients of dark to mid-tone grays.

Unfortunately there is no easy way out. The only one I know would be an expensive professional
monitor with in-monitor calibration. These often do calibration with 10 or even 12 bit LUTs and
are much less prone to banding. If there is a software option I don't know for sure. Adding some jitter
might reduce banding but also reduce sharpness...

As a quick check would be to temporarily deactivate your monitor calibration and watch your test image
again. This can be done with 'dispwin -c' and restarting darktable.

I added Pascal de Bruijn to the watch list as he has most experience with color management and calibration issues.

#2 Updated by Pascal Obry about 7 years ago

Ulrich,

Thanks for your quick answer. Sorry I wasn't clear, the banding is not on the attached image which is plain gray which
can be used to reproduce the issue.

I have this issue on 2 monitors, one which is calibrated and one which is not so I don't think this is due to calibration.

I have attached the export I get from grey-40.jpg with standard vignetting applied. Let me know if there is anything
I can do to help.

Pascal.

#3 Updated by Pascal Obry about 7 years ago

Here is the same image developed with Lightroom. You'll see that the banding (even if visible) is really softer and in fact
becomes almost unnoticeable in real image. Hope this helps.

#4 Updated by Pascal de Bruijn about 7 years ago

Those are very different vignetting applications, so they aren't that useful to compare :(

I do wonder if the pixel interpolation setting has any interaction here...

#5 Updated by Pascal Obry about 7 years ago

And the same image also developed with Lightroom but with a compression ratio equivalent to the one used with Darktable
(at least we don't compare apples with oranges :).

#6 Updated by Ulrich Pegelow about 7 years ago

  • % Done changed from 0 to 10
  • Priority changed from Medium to Low
  • Status changed from New to Confirmed

Well, in both programs vignetting seems to suffer from banding. Maybe to a somewhat different extent, but that
might also be due to differences in the gradients applied.

I'm quite sure that aliasing as described earlier is the cause here. Not only for color but also for tonal
banding. One idea might be to add some jitter to the gradient applied, so that hopefully banding is not as
visible any longer.

#7 Updated by Ulrich Pegelow about 7 years ago

  • % Done changed from 10 to 50
  • Target version set to Candidate for next minor release
  • Assignee set to Ulrich Pegelow
  • Status changed from Confirmed to In Progress

#8 Updated by Ulrich Pegelow about 7 years ago

I just added a dithering parameter to module vignetting. Can be found in banch master.

Options are "off", "8-bit output" and "16-bit output". In most cases "8-bit output" should be the right choice
to avoid banding on screen.

Even with the dithering option applied, banding can creep in again quite easily. JPEG's compression has a tendency
to produce banding artifacts. Also image viewers might show banding, especially if you view your image scaled-down.

To check the new option, you best generate an 8-bit output to a lossless format (or JPEG with quality 100%) and inspect
the image with GIMP in 100% view.

#9 Updated by Pascal Obry about 7 years ago

Excellent, I just checked the new dithering option and it is really good! It makes a huge difference to me. Thanks a lot!

#10 Updated by Ulrich Pegelow about 7 years ago

  • % Done changed from 50 to 100
  • Status changed from In Progress to Fixed

Cool! Closed.

Also available in: Atom PDF

Go to top