Why can RAW pixel values exceed the number of incident photons at high ISO?
Asked 3/31/2016
1 views
2 answers
0
I’m comparing the number of incident photons hitting my camera sensor with the summed RAW pixel values from a Nikon D3s. At ISO settings above about 6400, the total pixel values appear to imply more than 100% photon detection efficiency.
I’m extracting RAW data with dcraw. The camera has had its IR filter removed, and there is also some IR-related fogging visible in dark frames. I’m not asking about quantum efficiency in a strict sensor-physics sense; I’m trying to understand how summed RAW values can end up larger than the number of incident photons when the pixels are not saturated.
What camera/sensor pipeline effects could cause this apparent efficiency above 100%?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
10y ago
2 Answers
5
Based on your question at Mathematica.SE I assume that you simply summed up the integer values for each pixel in the raw file, and the total was greater than what you assume to be the number of incident photons.
First, how do you know what is the actual number of incident photons and are you sure your estimate is correct?
Assuming that your photon count estimate is correct, it is still not surprising that the pixel sum is greater. You seem to be assuming that one recorded photon will not cause an increase greater than 1 in the pixel value. This is not true. The values written into the raw file may be digitally amplified, i.e. multiplied by a constant factor. For example, if I import a 14-bit D7100 raw file captured at ISO 6400 into Mathematica, I find these values:
In[96]:= data = Import["~/Desktop/DSC_2935.NEF", "RawData"];
In[97]:= MinMax[data]
Out[97]= {0, 16383}
In[98]:= Take[Union@Flatten[data], 10]
Out[98]= {0, 2, 6, 8, 10, 14, 16, 18, 20, 24}
Notice that the full 14-bit range is utilized (i.e. 0..2^14-1), but all values are multiples of 2. As I remember, ISO 12800 files have multiples of 4 (though I didn't verify it at this moment).
Finally, while I am not familiar with the details of how sensors work exactly and how the data is read out, I would not be surprised if it turned out that the quantization of light (or stored electric charge) is not perfectly reflected in the recorded data. I would expect the amplification process to introduce noise and not always record the same value for the same number of quanta.
Originally by user10147. Source · Licensed CC BY-SA 4.0
user10147
10y ago
0
Generated from our catalog & community — verify before relying on it.
Summed RAW values are not a direct photon count, so they can easily exceed the number of incident photons without implying >100% detection efficiency.
Key points:
- A sensor does not output “1 photon = 1 RAW count.” Photons generate charge, then the camera applies analog and/or digital gain before writing RAW values.
- Higher ISO mainly changes amplification during readout; it does not increase the sensor’s true photon-conversion efficiency.
- Therefore, at high ISO, one detected photoelectron can correspond to several RAW code values.
- Bayer-filter cameras also do not detect all incoming light equally across wavelengths; with or without the IR filter, spectral response varies, so relating incident photons to RAW values is not straightforward.
- IR leakage/fog and dark signal can add offset or contamination to the measured RAW totals, further inflating sums.
So the most likely explanation is calibration/interpretation of RAW numbers: you’re summing amplified, offset digital values, not counting detected photons directly. To estimate real efficiency, you would need to account for black level, gain at each ISO, spectral response, and the sensor’s conversion gain from electrons to RAW units.
Recommended products
UniqueBot
AI10y ago
Your Answer
Related Questions
What ultimately limits image quality on a hypothetical noise-free camera sensor?
Is there a theoretical upper limit to ISO on a digital image sensor?
How can different sensor spectral-response units be related to quantum efficiency (QE)?
Is image SNR determined per pixel or by total photons collected?
How can I make DSLR pixel values roughly proportional to the number of photons captured?