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.

142 A. <strong>Babiarz</strong>, R. <strong>Bieda</strong>, and K. Jaskot<br />

Fig. 3. Schematic diagram of the steps of learn<strong>in</strong>g phase of the vision algorithm<br />

The b<strong>in</strong>ary image is then a subject to the flood fill algorithm, which marks all<br />

dist<strong>in</strong>ct objects on the field with dist<strong>in</strong>ct labels. It also performs calculations of<br />

mass center, ma<strong>in</strong> axes of <strong>in</strong>ertia and bound<strong>in</strong>g box for every object. Next the<br />

smallest objects are sorted out and only seven biggest ones are taken <strong>in</strong>to account<br />

<strong>in</strong> further process<strong>in</strong>g. As a next step the additional constra<strong>in</strong>t is imposed on these<br />

objects - they have to consist of at least 25 pixels. This limit comes from practical<br />

measurements show<strong>in</strong>g that the smallest object on a field, the ball, consists of at<br />

least 50 pixels, and all typical false objects ("noise") left on b<strong>in</strong>ary image consist<br />

of at most 10 pixels.<br />

All further process<strong>in</strong>g is done only for pixels be<strong>in</strong>g <strong>in</strong>side of bound<strong>in</strong>g boxes<br />

and belong<strong>in</strong>g to the particular object (background pixels are not affected <strong>in</strong> any<br />

way) calculated by flood fill algorithm. The first operation performed on these<br />

regions is RGB median filter<strong>in</strong>g. This operation can be described as replac<strong>in</strong>g<br />

similar colors with the dom<strong>in</strong>ant color, which <strong>in</strong> turn improves the quality of histogram<br />

based classification algorithm. The next step of the algorithm is calculation<br />

of color RGB histograms for each region. As usual, <strong>in</strong> order to speed up the calculations,<br />

the colors are quantized from 255 levels per component (R, G, B) to 4<br />

levels. So the number of dist<strong>in</strong>ct colors recognized by the histogram is reduced<br />

from 16.7 mln to 64 which has proved to be very sufficient.<br />

The histograms obta<strong>in</strong>ed are used for classify<strong>in</strong>g objects they represent to 7<br />

classes (ball and 6 unique robots belong<strong>in</strong>g to 2 teams). Classification is done by<br />

NN (nearest neighbour) algorithm which compares each histogram with set of<br />

reference histograms represent<strong>in</strong>g the 7 classes mentioned above (one reference<br />

histogram is stored for one particular class). The histogram <strong>in</strong>tersection function<br />

[2], [3] serves here as a metric, required by NN method <strong>in</strong> order to measure a distance<br />

between two histograms. Experiments proved that this metric provides quality<br />

of classification similar to quadratic cross-distance at the computational cost of<br />

b<strong>in</strong>-to-b<strong>in</strong> Euclidean metric.

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

Saved successfully!

Ooh no, something went wrong!