Optics and Photonics Journal, 2013, 3, 318-321
doi:10.4236/opj.2013.32B074 Published Online June 2013 (http://www.scirp.org/journal/opj)
Image Correction Method of Color Line-Scan System
Zhen-long Chen, Yu-tang Ye, Yun-cen Song, Ying Luo, Lin Liu, Juan-xiu Liu
School of Opto-electronic Information, University of Electronic Science and Technology of China, Chengdu 610054, China
Email: czlong008@163.com, lmagic200@gmail.com
Received 2013
ABSTRACT
As the development of machin e v ision techno logy, th e co lor line-scan syste m is widely ap p lied in th e on-lin e insp ection.
Due to the non-uniform gray scale and color distortion of the image acquired by the system, the image correction is
needed to reduce the problem of image processing and the stability system. Based on reasons mentioned above, a
method that using polynomial fitting to correct the image is presented to solve the problem in this paper. The method
has been used in the automatic optical inspection of PCB, and has been proved to be effective. So this method will have
a potential application to the development of the color line-scan machine vision system.
Keywords: Machin e Vision; Autom atic Optical Inspection (AOI); Color Line-scan System; White Balance; Flat-field
Correction
1. Introduction
With the development of machine vision and automated
optical inspection technology, system application (such
as inspection of PCB appearance defect, color print de-
fect detection, etc...) based on the color line-scan tech-
nology is increasingly widespread. In the color line-scan
visual system, the non-uniform distribution of optical
intensity, the vignetting of optical lens, and the inho-
mogeneity of CCD camera, will result in non-uniform
grayscale and color distortion of the image acquired by
the system. This can bring difficulties for the back-end
image processing, so that it can have some impacts on
system stability[1-9].
2. Image Quality Correcting Method
Color line-scan system structure is shown in Figure 1.
Due to the correction method of RGB channel is basi-
cally the same, we take R channel processing as an ex-
ample flat-field correction method for color image de-
scription.
encoder
lens
Figure 1. Structure of color line-scan system.
2.1. Color Correction
For Cb and Cr reflecting the luminance and chrominance
of red and blue channel respectively, so the color correc-
tion need to change the image from RGB to YCbCr
space. The color space transform method is shown in the
formula (1).
0.299 0.587 0.114
0.1687 0.33130.5
0.50.41870.0813
YR
Cb G
Cr B
(1)
In this method, the scope of Cr and Cb is from -127 to
127. After space transform, according to the color tem-
perature of YCbCr space, the color cast is obtained. Base
on the color cast, Cb and Cr can be corrected the best
value on the basis of channel gain( Cb and Cr of white
color is zero, so channel gain is getting the parameters
which can adjust Cb and Cr to zero or close to zero).
2.2. Noise Eliminating
We use color linear CCD image acquisition system
shown in Figure 1 to do image acquisition for the stan-
dard whiteboard. In the standard whiteboard image cap-
ture experiments, we collected 1000 lines image data as
uniform field images, as shown in Figure 2.
In order to eliminate random noise, extract gray scale
information of the R channel of the color image from
Figure 2, and do average processing for the pixel values
in the image’s vertical direction (i.e. the relative move-
ment direction compare colored line array CCD camera
with the scan target), obtain gradation distribution shown
Copyright © 2013 SciRes. OPJ