01.12.2012 Views

Master Thesis - Fachbereich Informatik

Master Thesis - Fachbereich Informatik

Master Thesis - Fachbereich Informatik

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.2. CAMERA SETUP 35<br />

eachcolorchannelisreduced. Toovercomethisproblem,onehastointerpolatethetwo<br />

missing color channels at each pixel position. There are several interpolation approaches<br />

also denoted as BAYER demosaicing. With respect to speed it is important to use a not<br />

too expensive computation. The F-033C computes R-G-B values at virtual points Pi at<br />

the center of each local 2 × 2 neighborhood as follows [3]:<br />

= R1<br />

P 1red<br />

P 1green = 1<br />

P 1blue<br />

P 2red<br />

P 2green = 1<br />

P 2blue<br />

P 3red<br />

P 3green = 1<br />

P 3blue<br />

2 (G1+G3)<br />

= B1<br />

= R2<br />

2 (G1+G4)<br />

= B1<br />

= R2<br />

2 (G2+G4)<br />

= B2<br />

(3.1)<br />

where the location of the different points can be found in Figure 3.2. Obviously, this<br />

interpolation technique reduces the resolution of the sensor in all channels, since values<br />

can be computed only at positions where four pixels meet and not at the boundaries of<br />

the image. 1<br />

If the inspection task can be performed at gray scale images, gray scale cameras should<br />

be used instead of color cameras. Intuitively, the accuracy of a color camera can not be<br />

the same as that of a gray scale camera, because this requires two interpolation steps.<br />

First, one interpolates the R-G-B color channels as introduced before, and then has to<br />

estimate the image brightness from these interpolated values. A gray scale camera offers<br />

a more direct transformation between light intensity and image values, thus, leading not<br />

only to more accurate images, but also to higher frame rates. This can be supported by<br />

the following experiment.<br />

A test image of graph paper has been captured once with the F-033C and once with the<br />

F-046B. A 16mm fix-focal length lens has been used respectively, and the distance between<br />

camera and graph paper as well as the viewing direction has been the same. The focus of<br />

the optical system was adjusted to obtain a sharp image in both cases. The results can<br />

be found in Figure 3.3. The color image in (a) has been converted into gray level values<br />

using the following equation:<br />

I(x, y) =0.299R(x, y)+0.587G(x, y)+0.114B(x, y) (3.2)<br />

where R, G, B represent the three color channels for red, green, and blue respectively<br />

and I is the resulting gray level image.<br />

The grid appears to be more sharp in the image of the gray scale camera, although the<br />

color image was also at focus during acquisition. The profiles of two scan lines of equal<br />

length through an edge of the grid (visualized in (b) and (d)) can be found in Figure 3.3(e).<br />

1 There are also color cameras that are provided with three chip sensors. The incoming light is split into<br />

different wavelength ranges via a prism. Thus, each sensor yields a full resolution image of one color<br />

channel and interpolation is not necessary. These cameras, however, are quite expensive and could not<br />

be tested.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!