Why gain is bad for your dynamic range.

One way to reduce the noise in a video camera image is to reduce the cameras gain. One way to increase the brightness of the image is to add gain.

We all know that increasing the gain to lets say +6db will increase noise and generally the reverse holds true when you reduce the gain, the noise typically reduces and this may be helpful if you are going to do a lot of effects work, or just want a clean image.

However in most cases adding or removing gain reduces the cameras dynamic range as it will artificially clip or limit your low key or high key parts of the image. The maximum illumination level that a camera can capture is limited by the sensor or the gamma curves that the camera has. The black level or darkest part of the image is the point where the actual image signal compared to the sensor noise level is high enough to allow you to see some actual picture information (also known as noise floor). So the dynamic range of the camera is normally the range between the sensors noise floor and recording or sensor clipping point.

To maximise the cameras dynamic range the designers will have carefully set the nominal zero db gain point (native ISO) so that the noise floor is at or very close to black and the peak recording level is reached at the point where the sensor itself starts to clip.

The gain of the camera controls the video output and recording level, relative to the sensors signal level. If you use -3db gain you attenuate (reduce) the relative output signal. The highlight handling doesn’t change (governed by the sensor clipping or gamma curve mapping) but your entire image output level gets shifted down in brightness and as a result you will clip off or loose some of your shadow and dark information, so your overall dynamic range is also reduced as you can’t “see” so far into the shadows. Dynamic range is not just highlight handling, it is the entire range from dark to light. 3db is half a stop (6db = 1 stop) so -3db gain reduces the dynamic range by half a stop, reducing the cameras underexposure range without (in most cases) any change to the over exposure range, so overall the total dynamic range is reduced.

When you add gain the reverse happens. Generally how far the sensor can see into the shadows is limited by the sensors noise floor. Add 6db of gain and you will make the darkest parts of the image brighter by 6db, but you will also raise the noise level by the same amount. So while you do end up with brighter shadow details you can’t actually see any more picture information because the noise level has increased by the same amount. At the top end as the brightest sensor output is mapped to the maximum recording level at 0db, when you add gain this pushes the recording level beyond what can be recorded, so you loose 6db off the top end of your recordings because the recordings and output clips 6db earlier. So positive gain maintains the same shadow range but reduces the highlight recording range by 6db.

However you use it gain tends to reduce your dynamic range. Adding gain to cope with poor lighting tends to be the lesser of the two evils as generally if your struggling for light then overexposure and blown out highlights is often the last of your worries.

Negative gain is sometimes used in camera to try to reduce noise, but the reality is that you are loosing dynamic range. Really a better solution would be to expose just a tiny bit brighter and then bring your levels down a bit in post production.

4 thoughts on “Why gain is bad for your dynamic range.”

  1. Could you cite any sources or tests? The article seems pretty vague without addressing any particular camera’s implementation and without mentioning likely DR limitations imposed by the ADC versus the sensor, which is common in cameras with adjustable gain. The sensor itself is an analog device and has a fixed DR, gain generally only is used to workaround the downside of a DR-limited ADC. At least that is my understanding for most common implementations.

    1. It’s basic SNR theory. Gain doesn’t change SNR and as there is a finite recording range additional gain will push your levels beyond the design recording range so DR is reduced. If the original is 0 to 100% then adding gain will make the new signal bigger than 100%. We can’t record more than 100% so the signal is lost and dynamic range is reduced.
      Generally the DR of a camera is limited by either the sensor or A to D’s. So if a system is operating at it’s maximum DR, subtracting gain will reduce the DR as you will make small values too small to be useful.

      It’s easy enough to test for yourself with a camera and waveform monitor. You can even see this with most cameras with a histogram. Use negative agin and you’ll see the peak recording level drop and some shadow detail become clipped. Add gain and you’ll see the noise floor come up and highlights clip earlier.

  2. Perhaps what you are saying is over my head but it sounds like you are saying the DR is limited by the recording range? Why wouldn’t they be able to take whatever values come out of the ADC and map them to fit the recording range if it is designed properly? They are presumably doing lots of other processing to the ADC output: debayering, applying gamma, matrix, bit downsampling, etc…

  3. Noah, A good way to think of it is like a glass of water.

    Imagine you have a glass of water that is full to the brim. You then place an object in the bottom of the glass to boost the level and the water level rises and you lose some water out of the top of the glass.

    It might be possible for some remapping to be done, similar to the active knee that is often on ENG style cameras. However you would still increase the noise, and you would perform such remapping at the expense of tonal range because you would have to compress the highlights, and possibly end up affecting other parts of the image.

Leave a Reply to alisterchapman Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.