A bayer sensor is a color image sensor that works in conjunction with the main image sensor to capture the color of a digital image. It uses a pattern of 25% red, 25% blue, and 50% green pixels to obtain color information efficiently. Within this pattern, individual pixels only capture data on their assigned color, so a red pixel only captures the red value at that specific point on an image, while the pixel beside it only captures the green value, and so on according to the pattern. During debayering, each pixel’s RGB value is interpolated from these neighboring samples.