Bayer filter explained, or how your phone's camera sees color

Bayer filter explained, or how your phone's camera sees color
Although we call them smartphones, making phone calls is far from the top uses for today's highly-versatile handsets. Smartphones are built from the ground up for a number of more resource-demanding tasks, such as browsing the web, running apps and games, and, of course, taking photos and videos. And as you have surely noticed, most people's primary camera device is their smartphone. That's why camera quality is of utmost priority to the great majority of smartphone buyers.

But while many are the folks demanding phones with awesome cameras, few are the ones familiar with a camera's inner workings. So here's something to shed some light on the matter. Today's topic – how your smartphone's digital camera captures colors. 

In a nutshell, today's cameras have sensors on which a grid of light-sensitive pixels is laid out. Put, let's say, 12 million of these together and you get a 12-megapixel camera. The light that hits these pixels when the shutter button is pressed is processed and turned into a digital image that ends up in your device's gallery. 

The interesting part is that the light-sensitive element on a pixel cannot detect color. It can only detect the intensity of the light hitting it, which is why to calculate the RGB (red, green, and blue) color value of each pixel, the camera needs what's called a Bayer filter. The latter places a red, green, or blue filter on top of each pixel, enabling it to detect the value of a particular color. As for each pixel's missing two color values, these are estimated based on the values of adjacent pixels that capture the missing colors. Simple as that.

If you're still confused as to how cameras capture color, just watch Computerphile's video embedded below. It does a great job at explaining the Bayer filter's purpose in easy-to-understand terms.

source: Computerphile (YouTube)



4. elitewolverine

Posts: 5192; Member since: Oct 28, 2013

Much better article than seeing 7 leak pic articles and random fanboy renders of some devices.

3. kaikuheadhunterz

Posts: 1157; Member since: Jul 18, 2013

Computerphile ftw!!!

2. bugsbunny00

Posts: 2267; Member since: Jun 07, 2013

learn something

1. arch_angel

Posts: 1651; Member since: Feb 20, 2015

Already knew all that ish

Latest Stories

This copy is for your personal, non-commercial use only. You can order presentation-ready copies for distribution to your colleagues, clients or customers at or use the Reprints & Permissions tool that appears at the bottom of each web page. Visit for samples and additional information.
FCC OKs Cingular's purchase of AT&T Wireless