Bayer filter

From Academic Kids

Missing image
The Bayer filter mosaic. Each block of four contains 2 green, 1 blue and 1 red pixel.

A Bayer filter is a color filtering array for arranging RGB colors on a monochromatic grid. The term most often refers to a common mosaic of color filters used on many single chip digital cameras. Each sensor pixel is covered by red, green and blue coloured filters. The Bayer filter has twice as many green pixels as red or blue because of the human eye's greater resolving power with green light.

In the raw output of Bayer filter cameras is referred to as a Bayer Pattern image. Two thirds of the color data is missing from each pixel. A demosaicing algorithm is used to interpolate the complete red, green, and blue values for each point. Many different algorithms exist.

Missing image

An illustrated explanation of color image reconstruction

To reconstruct a color image from the data collected by the color filtering array, you need to fill up the blanks. The mathematics here is subject to individual implementation. In this example, we use Adobe Photoshop's bicubic interpolation to simulate the circutry of a Bayer filter device such as a digital camera. In a typical commercial implementation, low pass anti-alias filters will be added that make the artifacts shown here less pronounced, with a corresponding reduction of sharpness.

Missing image

This is the original image, made with Adobe Illustrator. If a perfect digital camera with perfect optical lens that can measure every pixel's exact Red, Green, and Blue components, the resulted image will probably look like this.

Missing image

This is a simulated sampling taken by a Bayer filtered sensor array. Each pixel only has a value of either R or G or B.

Frame enlargement
Missing image

Missing image

Missing image

Red Green Blue

A digital camera has certain circuits to reconstruct the whole image using above information. The resulting image could be something like this:

Missing image

Missing image

Missing image

Frame enlargement of the original. Frame enlargement of the reconstructed image.

As you can see, the reconstructed image looks good in low contrast areas. However, the edges of letters have visible colored artefacts, and a rough appearance.

See also

External links

Template:Physics-stubru:Фильтр Байера


Academic Kids Menu

  • Art and Cultures
    • Art (
    • Architecture (
    • Cultures (
    • Music (
    • Musical Instruments (
  • Biographies (
  • Clipart (
  • Geography (
    • Countries of the World (
    • Maps (
    • Flags (
    • Continents (
  • History (
    • Ancient Civilizations (
    • Industrial Revolution (
    • Middle Ages (
    • Prehistory (
    • Renaissance (
    • Timelines (
    • United States (
    • Wars (
    • World History (
  • Human Body (
  • Mathematics (
  • Reference (
  • Science (
    • Animals (
    • Aviation (
    • Dinosaurs (
    • Earth (
    • Inventions (
    • Physical Science (
    • Plants (
    • Scientists (
  • Social Studies (
    • Anthropology (
    • Economics (
    • Government (
    • Religion (
    • Holidays (
  • Space and Astronomy
    • Solar System (
    • Planets (
  • Sports (
  • Timelines (
  • Weather (
  • US States (


  • Home Page (
  • Contact Us (

  • Clip Art (
Personal tools