The following is based on
Roger N. Clark articlesCanon's black level in raw data corresponds to the lowest digital number (DN) value of the photo sensor. In 10b system, this value is set to 31. In 12b system, this value is set to 127, about (2^(12-10) * 31).
For same kinds of photo sensors, this DN value is set to (2^(b-5) - 1), where "b" represent bit-range of the analog/digital (A/D) converter, leaving an even possible numbers of DN values (10b: 992, 12b: 3968) to be converted during de-mosaicing and color mapping processes.
Why the black level is set to this DN value instead of been set to DN zero, as per Nikon (see M. Clark' articles), leaving full DN range to count photons ?
First, and most, to have the possibility to evaluate floor noise, composed of sensor read noise, A/D conversion limitations and amplifier noise, relevant to empty cell's well, in opposition to full cell's well, ideally set to full range DN value. Also, in fact, with Canon sensors, a non-exposed sensor area exist on the left side to statistically estimate black level and its uncertainty.
From
http://www.barrypearson.co.uk/articles/dng/specification.htm#areasThe following schemas represent G9 (10b) and G12 (12b) statistical results. Assuming Gaussian distribution, these black levels are respectively 32 +/- 10 DN and 128 +/- 40 DN. On similar A/D base, DN values and uncertainties are identical. Other cameras could have different values and uncertainties.
(see the first schema)
(see philmoz attachement)
Second, under some conditions, as long exposure, ambiant temperature, ... thermal noise could be modelised in conjonction with floor noise to contribute to total noise estimation. Upon M. Clarks's model, total noise is expressed as square root of the sum of photons in the cell's well (Pw), the squared floor noise (r) and the squared of thermal noise (t). [ Total = sqtr( Pw + r^2 + t^2 ) ] Photons in the cell's well are square root of the incident photons, due to Poisson distribution. Floor noise could be measured using the black level uncertainty of the black Canon's area. Thermal noise could be deduced from black level value, at different temperatures, IMHO.
Third, and therefore, black value and noises (P, r, t) estimations could be used to remove undesired randomness in DN values during de-mosaicing and color mapping convertion under some raw converters. This task is more hard with zeroed black level DN value and longer without sensor's black area (i.e.: subsequent black frame exposure), as per Nikon.
Non-zero black level DN value effectively cost, on G9 and G12, about 3% of the DN dynamic range [( black level + 1 ) / ( white level + 1 )]. In terms of photographic stop, where zeroed full range is log2 (white level +1), Canon's full range is log2 ( (WL+1)-(BL+1) ), and finally cost respectively, for G9 and G12, 0,46% over 10 stops and 0,38% over 12 stops, at the benefit of immediatly available noise information.
Concerning differences of black levels and uncertainties between colors, these could be consequent to the cell's filter transparencies and cell's sensitivity to these wavelengths (cell threshold sensitivity is in infrared wavelength), necessiting different amplifications for blue, green and red, to give similar linear response upto full well capacity.
To conclude, constant DN black level value could be used as is, but estimation of colored black level DN values could be considered by some raw converters. But, also, estimation of colored black level uncertainties could be used, before de-mosiacing, to reduce noises over the dynamic range, giving more realistic pictures at the price of about 0,4% photographic stops.
P.S.: I think it is better like that.
My error was Canon's full range is log2 ( (WL+1)
) - log2 ( (BL+1) ) instead of Canon's full range is log2 ( (WL+1)
- (BL+1) ). Sorry and thank you.