Bayer filter

From Academic Kids

Missing image
BayerPatternSimpleMosaic.jpg
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
BayerPatternFiltration.jpg
Thumb

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
Shades_aa.jpg
Image:shades_aa.jpg

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
Shades_bayer.gif
Image:shades_bayer.gif

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.

Image:Shades_framed_bayer.gif
Frame enlargement
Missing image
Shades_bayer_r.gif
Image:shades_bayer_r.gif

Missing image
Shades_bayer_g.gif
Image:shades_bayer_g.gif

Missing image
Shades_bayer_b.gif
Image:shades_bayer_b.gif

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
Shades_dc.jpg
Image:shades_dc.jpg

Missing image
Shades_framed_aa.jpg
Image:shades_framed_aa.jpg

Missing image
Shades_framed_dc.jpg
Image:shades_framed_dc.jpg

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:Фильтр Байера

Navigation

Academic Kids Menu

  • Art and Cultures
    • Art (http://www.academickids.com/encyclopedia/index.php/Art)
    • Architecture (http://www.academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (http://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (http://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools