14.11.2012 Views

Submitted version of the thesis - Airlab, the Artificial Intelligence ...

Submitted version of the thesis - Airlab, the Artificial Intelligence ...

Submitted version of the thesis - Airlab, the Artificial Intelligence ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

5.2. Color Definition 63<br />

9000<br />

8000<br />

7000<br />

6000<br />

5000<br />

4000<br />

3000<br />

2000<br />

1000<br />

0<br />

0 2 4 6 8 10<br />

R<br />

6000<br />

5000<br />

4000<br />

3000<br />

2000<br />

1000<br />

0<br />

0 2 4 6 8 10 12<br />

G<br />

7000<br />

6000<br />

5000<br />

4000<br />

3000<br />

2000<br />

1000<br />

0<br />

0 2 4 6 8 10<br />

Figure 5.5: The histogram formed from <strong>the</strong> samples taken for each color channel.<br />

a viewer will be able to judge <strong>the</strong> entire color distribution at a glance. For<br />

this we wrote a scriptin Matlab. We took as many samples as we could from<br />

<strong>the</strong> environment where <strong>the</strong> object is placed in different lighting conditions.<br />

From <strong>the</strong> sample images captured, <strong>the</strong> part with <strong>the</strong> object is cropped<br />

(area with <strong>the</strong> target color) in order to find <strong>the</strong> color distribution <strong>of</strong> <strong>the</strong><br />

pixels forming <strong>the</strong> object.<br />

(a) Mask R (b) Mask G (c) Mask B<br />

Figure 5.6: The mask for each channel by setting <strong>the</strong> upper and lower bounds.<br />

From that histograms we create <strong>the</strong> masks (Figure 5.6), by finding <strong>the</strong><br />

upper bounds and lower bounds for each color channel. As a final step we<br />

create <strong>the</strong> total mask, that is returning <strong>the</strong> target object’s color boundaries<br />

B

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

Saved successfully!

Ooh no, something went wrong!