Normally, each pixel in the camera is either R, G or B. Typically, there are also twice as many G pixels as there are R or B. So, for a 50 Mp image there are 12,5 million red pixels, 25 million green, and 12,5 million blue pixels.
When the raw image from the camera is converted to something you’d want to view on a screen, the RGB value for each pixel is constructed based on the values of the neighbouring pixels. This is called “de-mosaicing”. So for a red pixel, the R comes from the pixel itself, but the G and B values come from neighbouring pixels (in practice this is more complicated).
Latest Answers