Rongnongno wrote:
raw does not pass through the Bayer layer and because of that not have the 8 bit color depth limitation but 11 or 14.
I'm not sure what you mean by "pass through the Bayer layer"? That isn't standard terminology.
While TIFF files use 8 or 16 bit depth, the actual color of a pixel requires three times as many bits to define. An 8-bit TIFF file contains 24 bits for the of color each pixel, while a 16-bit TIFF file uses 48 bits for each pixel.
With a TIFF file the accuracy is the same as the precision, because any given pixel value defines precisely one specific color, and the total number of colors is the same as the possible number of values.
With the mosaiced Bayer pattern in a RAW file the data for one pixel is not just that one 14 bit byte. It is derived from at least a 2x2 byte matrix and usually from a larger matrix. Hence the precision might be thought of as 4*14 (56) bits minimum, and commonly either a 3x3 matrix (126 bits) or a 4x4 matrix (224 bits) per pixel.
There is significantly greater
precision in the raw sensor data. However, there are an infinite number of ways to demosaic the bits, each of which can very correctly produce a different color from the same matrix; and thus the value can be repeated with precision, but they do not represent an accurate color value!
Rongnongno wrote:
Because tiff goes through the layer, its color depth is 8.
What does "through the layer" mean? TIFF actually has nothing at all to do with derivation from raw sensor data.
Color in a TIFF file is encoded RGB data. The 8 bit color depth defines the precision of the color levels that along with the three 3 RGB channels specifies one single color to a very accurate and repeatable known value.
The difference is that the raw data provides only the approximation of an exact color, which by changing the interpolation algorithm it is possible to select, for any given pixel, a more precise color than can be done with TIFF. But the color produce at the output is not necessarily an accurate representation of the original input color.
TIFF accurately defines a color, but the increments between color variations are relatively larger.
Rongnongno wrote:
Color mode is something else altogether and NOT related to the color depth.
As to 'Bayer layer' being more accurate let me beg to differ. I am doing more important things that I need researching to point this out to you so, do some research and figure out why raw is so much more than any other format.
Color encoded via a Bayer Color Filter Array is well known to produce an approximation of a color rather than an exact value. That is precisely the reason it is called "interpolation" when the data is converted to different type of color encoding.