Machine Vision Products
Firstsight Vision Check out our FREE  machine vision seminars
 
Sign up for our free E-News letter
 
Home
Illumination Systems
Lensing and Optics
  Cameras and Sensors
Cabling Solutions
Framegrabbers
Software Solutions
Smart Vision Systems
  Support Page
Selection Guides
How to find us and contact details...
   
machine vision progressive scan industrial cameras

Bayer Colour Filter

white paper

In general single-sensor colour cameras are employing a monochrome sensor with a colour filter pattern (one other possibility to achieve a colour image with only one sensor would be to use a revolving filter wheel in front of a monochrome sensor, but this clearly has some limitations).
This method of achieving colour images has as a consequence that no object point is projected on more than one sensor pixel, that is, only one measurement (for a single colour or sum of a set of colours) can be made for each object point.
In the following some different popular filter arrangements are detailed:

Bayer Colour Filter (Primary Colour Mosaic Filter)

The following table shows the arrangement of the filter pattern for a sensor of size xs x ys (xs and ys being multiples of 2):

    0    1    2    3  ..  xs-2 xs-1
0              
1              
2              
3              

..
             
ys-2              
ys-1              

As can be seen the building block is a 2x2 pattern with 1 blue and 1 red but 2 green filters. The reason for this is that the human eye is more receptive to green than to the other colours. Also this arrangement is less sensitive to aliasing effects of more regular filter arrangements such as the primary colour vertical stripe filter (explained below). Most digital consumer cameras and camcorders use the Bayer colour filter arrangement or the complementary colour variant (explained below).

Complementary Colour Mosaic Filter

The following table shows the arrangement of the filter pattern for a sensor of size xs x ys (xs and ys being multiples of 2):

     0    1    2    3  ..  xs-2 xs-1
0              
1              
2              
3              
..              
ys-2              
ys-1              

This is basically the same arrangement as before except without primary colours (R, G, B) but rather with complementary colours (magenta, cyan, yellow). The reason for this is that a primary colour filter blocks off 2/3 of the spectrum (i.e. green and blue for a red filter) while a complementary filter only blocks off 1/3 of the spectrum (i.e. blue for a yellow filter). So the sensor is 2 times more sensitive. The drawback is a somewhat more complicated computation of the R, G, B values requiring the input of each complementary colour.

Primary Colour Vertical Stripe Filter

The following table shows the arrangement of the filter pattern for a sensor of size xs x ys (xs being a multiple of 4):

     0    1    2    3    4    5  ..  xs-3 xs-2 xs-1

0
                   

1
                   

2
                   

3
                   

..
                   

ys-2
                   

ys-1
                   

This arrangement is very simple and basically suited well for machine vision applications. The drawback is that the horizontal resolution is only 1/3 of the vertical resolution.