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.

134<br />

S. Fraś et al.<br />

Fig. 10. Distorted (a) and undistorted (b) chessboard<br />

Press<strong>in</strong>g the Calibration button is possible only after captur<strong>in</strong>g specific amount<br />

of samples conta<strong>in</strong><strong>in</strong>g the chessboard. It calls a function of camera calibration,<br />

which straightens video stream, us<strong>in</strong>g determ<strong>in</strong>ed calibration parameters. The<br />

parameters are exploited<br />

to create a map of distortion, which serves proper<br />

straighten<strong>in</strong>g of the received video streams (fig. 10) the corners taken before, de-<br />

term<strong>in</strong>es the external and <strong>in</strong>ternal<br />

Fig. 11. Comb<strong>in</strong>ed video streams, <strong>in</strong> 2D (a) and 3D (b)<br />

The second important library used <strong>in</strong> the creat<strong>in</strong>g of the program was OpenGL,<br />

a graphic library well known by people deal<strong>in</strong>g with computer games graphics.<br />

The use of this library created a possibility to display acquired video streams <strong>in</strong> a<br />

three-dimensional space, which <strong>in</strong> turn solved, to a large extent, the problem of<br />

jo<strong>in</strong><strong>in</strong>g the streams captured by adjacent cameras. That problem is a result of the<br />

fact, that each camera observes its surround<strong>in</strong>gs from different angle, so the same<br />

object captured by two adjacent cameras has different shape (Fig. 11). Elements of<br />

the library created a possibility of plac<strong>in</strong>g an observer <strong>in</strong>side virtual hexagon-<br />

shaped room, and display<strong>in</strong>g the image registered by the cameras on its walls.<br />

This way the angle, at which cameras could see their surround<strong>in</strong>gs, was also the<br />

angle of view of the observer. OpenTK [10] library, which is an equivalent of<br />

OpenGL library <strong>in</strong> C# language, was used to implement this mechanism.

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

Saved successfully!

Ooh no, something went wrong!