@maxotics: No, I meant it exactly as I wrote it. Rewind is right! Of course I do not know where your research has taken you, so it's difficult for me to refute it step-by-step. But I will tell you that your understanding of debayering is simply incorrect. Each pixel receives a certain amount of light, which is the light coming into the camera through the lens optics, filtered by one (and only one) filter, either red, green or blue. That is, each pixel under a green filter (and about 50% of pixels fit this description) stores the amount of green light hitting it. So also for the pixels under the blue and red filters (25% each of the total number of pixels). It stores this value (per pixel, not per "general area", and not 3 values for R, G and B, but ONE value) as a 14-bit number. The result of all these measurements is the array shown in Rewind's post. If you think of each of these boxes as representing one pixel with a 14-bit value, the "trick" of demosaicing (also called debayering) is to interpolate, from this value and depending on the surrounding values, via complex mathematical algorithms (of which there are many) values of R,G and B for each pixel so as to render an image which looks like what the camera saw. There are no "two steps" to debayering, and no "rolling-up". The sensor data is completely available, and is called the raw data. After debayering, each pixel has a 14-bit value for each of its R,G and B channels
Simply put, everything you wrote between "From my research..." and "Whew" is simply incorrect. Also, as I stated above, Rewind is absolutely correct. Raw data has a single value for each pixel, but you have to remember that the arrangement of the Bayer filter is known, which means that we can use these two things to give us RGB data. In effect, raw data are indeed the values of each sensor pixel. Only after debayering does each pixel have a value for each of R,G and B.
In rereading your post, it almost seems as if you are conflating the idea of a Bayer filter with that of color sub-sampling. I can understand this confusion, because the concepts are somehow quite similar. But they are not the same concept, and in fact raw data is the data coming "raw" right from the sensor. Please don't continue to argue this point, do some more research. If you still have questions I will try to help.
In the meantime Rewind has also replied, and I might just add: "What he said..." Cheers!
Simply put, everything you wrote between "From my research..." and "Whew" is simply incorrect. Also, as I stated above, Rewind is absolutely correct. Raw data has a single value for each pixel, but you have to remember that the arrangement of the Bayer filter is known, which means that we can use these two things to give us RGB data. In effect, raw data are indeed the values of each sensor pixel. Only after debayering does each pixel have a value for each of R,G and B.
In rereading your post, it almost seems as if you are conflating the idea of a Bayer filter with that of color sub-sampling. I can understand this confusion, because the concepts are somehow quite similar. But they are not the same concept, and in fact raw data is the data coming "raw" right from the sensor. Please don't continue to argue this point, do some more research. If you still have questions I will try to help.
In the meantime Rewind has also replied, and I might just add: "What he said..." Cheers!