Most cameras do the demosaicking algorithm as part of their processing pipeline to render the images.
joyyy26
The red green blue ratio of 1:2:1 is due to our eyes being most sentive to green in the visible light spectrum
melodysifry
in these diagrams, what are the white squares? are they pixels that don't have color filters in that color? if so how are we weighting the interpolation of the neighbors in combination with the original value of the pixel?
kevintli
^ I believe the white squares just mean that that particular color (R, G, or B) is not measured at that pixel, but a different color is measured instead. For example, the pixel being pointed to in the leftmost image has a green filter applied to it in the middle image. Basically, for any given pixel, we're only able to measure a single value, so we're forced to choose either an R, G, or B filter and measure the amount of that color present in the image. However, since for each pixel we actually need all three RGB values to display the true color, we need to use interpolation for the 2 out of 3 colors that are not measured at each pixel.
Most cameras do the demosaicking algorithm as part of their processing pipeline to render the images.
The red green blue ratio of 1:2:1 is due to our eyes being most sentive to green in the visible light spectrum
in these diagrams, what are the white squares? are they pixels that don't have color filters in that color? if so how are we weighting the interpolation of the neighbors in combination with the original value of the pixel?
^ I believe the white squares just mean that that particular color (R, G, or B) is not measured at that pixel, but a different color is measured instead. For example, the pixel being pointed to in the leftmost image has a green filter applied to it in the middle image. Basically, for any given pixel, we're only able to measure a single value, so we're forced to choose either an R, G, or B filter and measure the amount of that color present in the image. However, since for each pixel we actually need all three RGB values to display the true color, we need to use interpolation for the 2 out of 3 colors that are not measured at each pixel.