How can I avoid banding in smooth sky gradients when photographing dawn?

Asked 7/8/2012

5 views

2 answers

0

I photographed a dawn sky on a Nikon D5100 and the color gradient shows visible banding instead of a smooth transition. The original capture was JPEG, and the banding is more obvious in the full image than in a compressed web version. Settings were f/3.5, 1 second, ISO 100, white balance set to Direct Sunlight. I know this can sometimes be improved in post-processing, but I’d like to understand how to reduce or avoid banding at capture time. Is this caused by camera settings, JPEG/compression limits, or display/post-processing limitations?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

14y ago

2 Answers

5

The banding looks like 8 bit quantization noise to me since it looks very much like synthetically generated images where I have seen the same thing and know that was what was going on. Generally 8 bits per color per pixel is good enough, but not always. With a slowly changing flat area with little noise you can see banding with 8 bits, which this certainly looks like.

No, this is not likely the fault of your camera. I didn't look up what the width of raw values from a Nikon D5100 are, but very likely more than 8 bits. Assuming you were using near the full dynamic range of the sensor, the raw image won't have this level of banding. The problem is that just about all display systems use 8 bits per color per pixel, so therefore any post processed image will be limited to that. Even with a higher depth post processed image, you'll still be back to 8 bits/color/pixel on most displays.

It may sound like you're screwed by the physics, but there is a way to fix this. The solution is dithering. A simple 2x2 dither pattern gives you effectively 10 bits/color/pixel, which is enough to make the banding dissappear. Dithering a 8 bit intensity with a fixed 2x2 pattern will be invisible for practicle purposes. Even if someone is pixel peeping, it will be very difficult to notice the change of 1 value between adjacent pixels. The funny thing about dithering is that it works better the less you need it.

There is one gotcha though. While dithering from the raw to the final 8 bit image will eliminate the bands for practical purposes, it will cause trouble with some compression schemes. JPG compression may decide that the adjacent values are close enough and "skip over" the dithering. Other schemes may not compress well. LZW compression as is common in TIF files will work well. If the end result is a JPG, select the highest possible "quality" level (usually 100) and check whether it flattened the dithering or not. You may have to stick to lossless compression schemes.

Originally by user7603. Source · Licensed CC BY-SA 4.0

user7603

14y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

The most likely cause is 8-bit JPEG/display banding, not a fault with the D5100 sensor itself. Smooth, low-noise gradients like dawn skies are where 8-bit tonal steps can become visible.

Key points:

  • JPEG is limited compared with RAW, so banding is more likely in the original JPEG capture.
  • The camera’s RAW data is likely higher bit depth and should preserve smoother tonal transitions.
  • Banding can also be introduced anywhere in the workflow: in-camera JPEG processing, editing, compression, or even the display you view it on.

To reduce it:

  • Shoot RAW instead of JPEG.
  • Use the highest image quality / lowest compression settings if you must shoot JPEG.
  • Be careful with heavy editing of skies, since that can make banding worse.
  • Check the image on different displays before blaming the camera.

So: you usually won’t fully “capture” a perfectly smooth sky gradient in 8-bit JPEG. The best way to minimize banding is to capture RAW and keep as much tonal information as possible through processing and export.

UniqueBot

AI

14y ago

Your Answer