|Главная | E-mail | 24.02.2021|
|Главная страница | О журнале | Новости | Авторам | Контакты|
|Научно-технический интернет-журнал Свидетельство о регистрации Эл № ФС 77-31314|
Дата публикации : 10.11.2009 | Просмотров : 174 | Для печати
Интерполяция элементов зеленого цвета в кадрах, полученных с цветного матричного КМОП-фотоприемника (English)
INTERPOLATION OF GREEN COLOR IN FRAMES FROM CMOS IMAGE SENSOR
The paper presents an algorithm for interpolation of the green pixels in frames from CMOS image sensor. The result is a monochrome frame calculated directly from the data from the primary BAYER matrix in the sensor. An algorithm and VHDL module work in real time were developed. The aim is simple and easy for usage algorithm, which uses small amount of macro-cells, to be implemented in FPGA. The algorithm is a part of optoelectronic system for measurements of the plane coordinates of a light spot. The system is based on PLD. The monochrome frame calculated with this module is used by other image processing algorithms in the system. FPGA XC3S400 by XILINX is used.
CMOS image sensor, VHDL, Color interpolation, Real-time applications,
In optoelectronic systems a lot of image processing algorithms are used for reaching the desired result. Usually the source is CMOS image sensor. All image processing algorithms use the data from this CMOS image sensor. The light in the image sensor is received by lots of small photodiodes. There are separate photodiodes for the three main colors in the image: Red, Green and Blue. The "color" sensors are even distributed over the surface of the sensor in primary Bayer matrix. The first image processing in the optoelectronic system is color interpolation. In this way original colors in the frame are restored from the Bayer matrix. The Image processing algorithms are simpler if monochrome frames are used. Because of this second step in image processing is RGB to grayscale conversion. The proposed algorithm generates monochrome frame directly from data coming from primary Bayer matrix in the CMOS image sensor. The algorithm and firmware of the entire optoelectronic system are developed in VHDL using WebPack 6.
2. Standard method for RGB to Grayscale conversion
All CMOS image sensors have primary Bayer matrix. The sensor elements are read pixel by pixel and line by line. The frame outgoes the sensor in the same way - pixel by pixel and line by line. After color interpolation intensity of each pixel in the image can be calculated according to the equation 1.
This equation is complicated for implementation in FPGA, if it have to work in real time, and requires mush resources. Because of this there is necessity of simple algorithm for RGB to grayscale image conversion.
3. Module for Green Interpolation
The CMOS image sensor in the optoelectronic system is OV2610 by OmniVision. It has resolution of 1600 х 1200 pixels. The green color gives main part of the information for the image to the human eyes. Because of this a great number of pixels are "green" pixels - 50% of all pixels. This fact is used in the proposed algorithm. In output frame green pixels are not changed, but the pixels between them are calculated according to equation 2.
Gn - green pixels in the Bayer matrix
The algorithm uses only two neighbor green pixels on the same line around Gx. In this way usage of additional video memory is avoided.
Figure (1) shows the structure of the primary Bayer matrix. Тhe output monochrome frame is shown on Figure (2).
Figure 3 uses numbers to show how the algorithm works. On Figure 3a - a content of Bayer pattern image is shown. It also shows the intensity of the green pixels. Figure 3b shows the result of the algorithm. FPGA uses binary numbers and this is the reason that calculated values in the monochrome image may have deviation around the real value.
The goal was simple algorithm and module for RGB to monochrome conversion to be developed. There were also requirements for small module uses few macro-cells in the FPGA. This algorithm calculates monochrome image directly from the primary Bayer image. In this way color interpolation, which is harder for computation, is avoided. The algorithm is thoroughly adapted for implementation in FPGA and work in real time.
Автор(ы) : Тодор Джамийков, Николай Ненов
Внимание ! Использование любых текстовых или графических материалов(а так-же их фрагментов) с сайта http://www.telephototech.ru возможно с разрешения администрации сайта с обязательным указанием ссылок на первоисточник и авторов статей и публикаций !