22.01.2015 Views

HDevelop User's Manual

HDevelop User's Manual

HDevelop User's Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

110 CHAPTER 5. PROGRAM EXAMPLES<br />

90<br />

"wood_cells.dat"<br />

80<br />

70<br />

60<br />

Anzahl<br />

50<br />

40<br />

30<br />

20<br />

0 100 200 300 400 500 600 700 800 900<br />

Position<br />

Figure 5.16: Cell wall proportion in growth direction in percent<br />

character. Thus the number is transformed into a string. Finally, the proportion of the cell wall<br />

(in percent) is concatenated to the string. At this it is important that the first or second value<br />

of the expression is a string, so that the following numbers are converted into strings. Here ·<br />

denotes the concatenation of characters instead of the addition of numbers.<br />

5.9 Region Selection<br />

File name: Ý׺Ú<br />

This example explains how to handle single iconic objects. In contrast to numerical data, where<br />

many different functions may be executed on parameter positions (see chapter 3.5), iconic objects<br />

may only be handled by using HALCON operators. The most important operators to select<br />

and combine iconic objects are shown in this example.<br />

The task is to search the eyes of the mandrill in figure 5.17.<br />

This is a simple task. First, we extract the bright parts by a thresholding. Then we have to<br />

examine the connected components according to their shape and size to select the eyes. At this,<br />

you could use the operator ×ÐØ ×Ô and get a fast program of five lines that processes the<br />

task. For demonstration purpose we use a kind of “low level” version instead: every region is<br />

extracted separately and examined afterwards. If it conforms to a given shape, it is added to a<br />

result variable.<br />

<strong>HDevelop</strong> / 2000-11-16

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

Saved successfully!

Ooh no, something went wrong!