Please enable JavaScript to view this site.

IDS Software Suite 4.96.1

Navigation: A: Camera basics > Sensor

Color filter (Bayer filter)

Scroll Previous Top Next More

For technical reasons, digital image sensors can only detect brightness information, but no color information. To produce color sensors, a color filter is applied to each photocell (pixel). The arrangement of the color filters is illustrated in the following figure. Two out of every four pixels have a green filter, one pixel has a red filter and one has a blue filter. This color distribution corresponds to the color sensitivity of the human eye, and is called the Bayer filter pattern. With the help of the Bayer pattern the correct brightness and color information can be calculated for each pixel. Full sensor resolution is retained.

Fig. 18: Bayer RGB filter pattern

Fig. 18: Bayer RGB filter pattern

Bayer conversion

A Bayer conversion, also referred to as debayering, is carried out to determine the color information from the raw sensor data (raw Bayer). By default most uEye cameras transmit the image data to the PC in raw Bayer format. The PC then uses the functions of the uEye API to convert the image data to the color format you need for displaying or further processing the data.

Some uEye cameras additionally allow debayering in the camera (see pixel preprocessing in chapter D: Specifications). In this case, the color images are already finished when they are transmitted to the PC. This reduces the load on the computer's CPU. It is important to ensure that the required transmission bandwidth of the camera increases.

To convert the colors, a filter mask moves over the image and calculates a color value for each pixel from the surrounding pixels. The uEye API provides two filter masks that differ in image quality and CPU load.

Normal Quality (Mode IS_CONV_MODE_SOFTWARE_3X3/IS_CONV_MODE_HARDWARE_3X3)
A smaller filter mask is used for conversion. This algorithm has a low load on the CPU. The filter's averaging function may cause a slight blur. Noise is reduced. This filter is recommended for image processing tasks.

High Quality (Mode IS_CONV_MODE_SOFTWARE_5X5)
A large filter mask is used for conversion. This algorithm offers very accurate color positioning and an increased level of detail. The CPU load is higher than with the normal filter. This filter is recommended for visualization applications.

Fig. 19: Bayer conversion using the standard mask

Fig. 19: Bayer conversion using the standard mask

See also:

Color conversion: is_SetColorConverter()

uEye Cockpit: Format

© 2022 IDS Imaging Development Systems GmbH