Why gain is bad for your dynamic range.

workshops-275 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.

gain-curves-1 Why gain is bad for your dynamic range.

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.

10 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.

  4. Assuming I’ve calibrated my zebras correctly to the right gamma / paint settings with the intention of using them to expose on bright whites, is it safe to say I’ll often need to bump up my ISO / db settings until a seemingly “bright white” is covered in stripes? Essentially, with video, I’m always reluctant to change out of the native ISO of a camera at the expense of dynamic range. However, I’m unaware of what else to change given lower-light conditions. I don’t want to alter shutter speed, obviously, and if my lens is already as open as possible – how else can I get the right exposure?

    Thanks in advance.

    1. Well if you are underexposed, dynamic range is the least of your worries, so don’t worry about adding gain or increasing the ISO if it’s the ONLY way you can increase your exposure.

  5. But how far can the exposure increased?, how much can i push the iso,
    if i have to shoot in low light situations?

    Thanks!

    1. How long is a piece of string? ISO is not exposure, ISO is gain and brightness, how much you can raise the gain depends on how much noise you are prepared to accept.

Leave a Reply

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