Does sensor black level calibration reduce dynamic range?
Asked 6/12/2015
1 views
2 answers
0
I’m trying to understand black level calibration in an image sensor. If a covered sensor still outputs a non-zero value, does subtracting that black level reduce the usable output range and therefore dynamic range?
For example, if a 10-bit output has a black level around 63, I wondered whether subtracting it would change the effective range from 0–1023 to about 0–960. I’m also confused about why an analog offset is added or subtracted before the ADC, and whether a digital offset after conversion would significantly reduce dynamic range.
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
11y ago
2 Answers
3
For one camera, the black level of the sensor will make the output non-zero when it is covered.
That is actually not correct. The purpose is the opposite. The "Black Level Calibration" output is a negative voltage, and it works so that when the lens is covered, the input on the ADC is zero.
So the dynamic range is reduced from 0~1023 t0 0~960. Am I right?
Nope.
I am not a electronic engineer, so I don't understand why the analog offset is added to pixel voltage.
That "Black Level Calibration Block" generates an offset voltage, that is substracted from the input (gain-corrected) voltage. The entire range of the ADC is still used.
The reason why you want to do a black level calibration is that the input level, especially with high analog gain, will not be zero when photographing black, but it will be some noise (will have some spectral power and will show as a non-negative number). To only digitize actual information, you want to shift your black level higher.
Are you losing ADC range with this? Not at all, on the contrary, you use your available ADC range to sample the most important information.
The output of ADC is reduced by digital offset, do this will reduce dynamic range greatly?
Digital gain and digital offset might cause you to lose some information, if the output of the ADC is mapped to a smaller range of DOUT, or if you clip on top or bottom.
Example of all above (completely arbitrary, as voltages and multipliers are implementation-dependent):
- You make a night shot.
- You get input voltages between 2mV - 120mV from the pixel cells.
- Your ADC needs input voltages between 0V - 1V. So you your camera applies an analog gain of x10. So the amplified voltage is 20 mV - 1.2V.
- Now, if you just digitized this, you would have clipping on the top, as the max. input voltage of the ADC is 1V. On the other hand, below 20 mV you would always get 0. So to optimize the ADC's input, a -20 mV "Black Level Calibration" voltage is applied (which is your black level).
- So now the ADC sees the correct 0V - to - 1V voltages. Great! All the 1024 output values of the ADC are significant.
- Would you use digital gain and offset? No. Your data covers the biggest dynamic range!
So... why do we have digital gain and offset, you might ask? Well, because
- you have three input colors
- you want to correct white balance
- you apply some creative filter on-the-fly,
- etc.
But not, if you save to RAW! If you save to RAW, you have the highest possible dynamic range.
Now, what MIGHT reduce dynamic range even when shooting into RAW:
- incorrect analog gain (some sensor implementations use current banks that can switch between too few possible gains - this means that the amount of possible gain values are limited)
- incorrect black level. Using too low black level will mean that you use a large portion of the ADC's sampling range to sample noise. Dynamic range is tied to a level of SNR, below that it makes no sense.
Originally by user24785. Source · Licensed CC BY-SA 4.0
user24785
11y ago
0
Generated from our catalog & community — verify before relying on it.
No. Black level calibration is intended to make a true dark signal map to zero, not to permanently throw away dynamic range.
In the described sensor pipeline, the black-level calibration block generates an offset that is subtracted from the signal before the ADC, so the ADC can still use its full range. In other words, the calibration shifts the baseline so that when no light is hitting the sensor, the ADC input is near zero.
This is needed because real sensors and analog gain stages often do not produce an exact zero output in darkness, especially at higher analog gain. Without calibration, the “black” level would be offset above zero and your shadow values would be inaccurate.
If you only subtract a fixed value digitally after conversion, then yes, in a simplistic sense you could lose some code values at the low end. But that is not the same as saying the sensor’s true dynamic range is greatly reduced. Proper black-level calibration is there to correct the baseline and preserve usable tonal accuracy, not to reduce image dynamic range.
Recommended products
UniqueBot
AI11y ago
Your Answer
Related Questions
What causes a camera sensor’s noise floor, and why can’t black-level subtraction remove it completely?
How can measured dynamic range exceed a sensor’s bit depth?
Why does the Pentax K-01 show lower dynamic range than the Pentax K-5 if they have similar sensors?
What image-quality benefit does a 100MP medium-format sensor offer over a 60MP full-frame sensor with the same pixel pitch?
What do camera dynamic range stops mean, and are they the same as EV on the meter?