22.01.2015 Views

HDevelop User's Manual

HDevelop User's Manual

HDevelop User's Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1.2. EXAMPLE SESSION 5<br />

Figure 1.2: Selecting ÇÔÖØÓÖ× º ÐØÖ º ËÑÓÓØÒ º ÑÒ Ñ opens an operator dialog<br />

for the operator ÑÒ Ñ. With the help of the opened combo box you may specify a<br />

reasonable value for the filter size.<br />

Now you are able to select the operator ÝÒ ØÖ×ÓÐ and to specify its input parameters.<br />

The value ÁÑÐÐ is used for ÇÖÒÐÁÑ. ÁÑÅÒ is used as the component<br />

to compare (here ÌÖ×ÓÐÁÑ). For the output parameter ÊÓÒÝÒÌÖ× the variable<br />

name remains unchanged (see figure 1.3).<br />

Image pixels touching each other and remaining above the given threshold have to be merged<br />

to single regions. The computation of these connected components is realized by operator<br />

ÓÒÒØÓÒ (menu item ÇÔÖØÓÖ× º ÊÓÒ× º ÌÖÒ×ÓÖÑØÓÒ×). The input region<br />

ÊÓÒÝÒÌÖ× is specified in the text field ÊÓÒ. The output variable’s default name<br />

ÓÒÒØÊÓÒ× is changed to ÓÒÒØÊÓÒ×ÝÒÌÖ×. After the operator’s execution<br />

all resulting regions are stored in this output variable. This shows a great advantage of<br />

HALCON’s tuple philosophy: although you have several different results you do not have to<br />

worry how to handle them. This is done transparently by HALCON. HALCON operators recognize<br />

a tuple type variable and process it accordingly. This results in more compact programs<br />

because you may combine several similar operator calls in one operator.<br />

To obtain a better visualization of the results after calling ÓÒÒØÓÒ you select the menu<br />

Î×ÙÐÞØÓÒ º ÓÐÓÖ. Here you specify the 12 predefined color presentation. Now<br />

every computed region receives one of the 12 colors. This presentation mode is very useful to<br />

indicate each region with a different color. If there are more than 12 regions the system uses<br />

the same color for several different regions. With Ú ×ÔÐÝ of the image ÁÑÐÐ<br />

you refresh the graphics window to see the results of next step much better. Select the menu<br />

ÇÔÖØÓÖ× º ÚÐÓÔ º Ú ×ÔÐÝ.<br />

In the next step you have to specify the regions which correspond to the circular marks of the<br />

HALCON 6.0

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

Saved successfully!

Ooh no, something went wrong!