13.08.2018 Views

[Studies in Computational Intelligence 481] Artur Babiarz, Robert Bieda, Karol Jędrasiak, Aleksander Nawrat (auth.), Aleksander Nawrat, Zygmunt Kuś (eds.) - Vision Based Systemsfor UAV Applications (2013, Sprin

Create successful ePaper yourself

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

<strong>Vision</strong> System for Group of Mobile Robots 143<br />

2.1 Camera Setup and Correct<strong>in</strong>g Radial Distortion<br />

of Camera’s Lens<br />

The only requirement imposed on the camera setup by the vision algorithm is that it<br />

should be possible to switch off all features like Auto Ga<strong>in</strong> Control (AGC), Auto<br />

White Balance (AWB), etc., <strong>in</strong> order to provide as constant colors as possible.<br />

Is is also important to set the lens’s aperture properly, <strong>in</strong> order to avoid excessive<br />

CCD bloom<strong>in</strong>g effect, which, <strong>in</strong> extreme cases, can distort shape of objects<br />

be<strong>in</strong>g recognized, thus degrad<strong>in</strong>g algorithm’s precision. Every consumer-class<br />

camera produces images with significant amount of radial distortion which degrades<br />

the precision of measurements done on the basis of analysis of acquired<br />

image, like estimation of the position and orientation of various objects on the<br />

image. Many methods have been developed for the purpose of calibration the<br />

camera, which take <strong>in</strong>to account radial and tangential distortion <strong>in</strong>troduced by<br />

camera’s lenses. The most widely used method is described <strong>in</strong> [5]. This method<br />

however requires precise measurements of coord<strong>in</strong>ates of correspond<strong>in</strong>g po<strong>in</strong>ts <strong>in</strong><br />

real world and on image, which would take too much time. So the alternative<br />

method is used here which is taken from [6]. It is very simple and quick, however<br />

it requires user’s attention <strong>in</strong> choos<strong>in</strong>g proper amount of compensation.<br />

The method uses <strong>in</strong>verse mapp<strong>in</strong>g for f<strong>in</strong>d<strong>in</strong>g the color of pixel <strong>in</strong> output image.<br />

Each pair of <strong>in</strong>teger pixel coord<strong>in</strong>ates <strong>in</strong> output image is mapped to a pair of<br />

coord<strong>in</strong>ates <strong>in</strong> <strong>in</strong>put image, which usually are real numbers rather than <strong>in</strong>tegers.<br />

Color of the pixel <strong>in</strong> output image is then calculated either through bil<strong>in</strong>ear, or<br />

through nearest neighbour <strong>in</strong>terpolation of the colors of pixels <strong>in</strong> the neighbourhood<br />

of the mapped coord<strong>in</strong>ates. Bil<strong>in</strong>ear <strong>in</strong>terpolation gives much better results<br />

than nearest neighbour (NN) <strong>in</strong>terpolation, however it is much slower.<br />

The algorithm perform<strong>in</strong>g actual correction can be described as follows. Let<br />

, be distorted <strong>in</strong>put image and , be rectified output image of the<br />

same size. Then, for any pair of pixel’s coord<strong>in</strong>ates <strong>in</strong> the output image , <br />

the pair of correspond<strong>in</strong>g coord<strong>in</strong>ates <strong>in</strong> the <strong>in</strong>put image , can be found<br />

from the follow<strong>in</strong>g formulas:<br />

1 (1)<br />

where<br />

and<br />

1 (2)<br />

<br />

<br />

(3)<br />

, (4)<br />

and , are coord<strong>in</strong>ates of the center of image. The parameter is to be chosen<br />

by the user, useful value of it is <strong>in</strong> the range (0.001, 0.1), depend<strong>in</strong>g on the amount<br />

of distortion <strong>in</strong>troduced by the particular lens. The color of a pixel <strong>in</strong> the output

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

Saved successfully!

Ooh no, something went wrong!