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.

3.5. EXPRESSIONS FOR INPUT CONTROL PARAMETERS 67<br />

There are no direct operations on parameter position for the handling of iconic variables. This<br />

means that single iconic objects cannot be directly selected using [] and their number cannot be<br />

directly determined using []. For this purpose, however, HALCON operators are offered which<br />

carry out the equivalent tasks. In table 3.8 you can see tuple operations that work on control data<br />

and their counterparts that work on iconic data. In the table the symbol Ø represents a control<br />

tuple, and the symbols Ô and Õ represent iconic tuples. Further examples can be found in the<br />

program ØÙÔкÚ.<br />

control iconic<br />

℄ ÑÔØÝÓ ´µ<br />

Ø ÓÙÒØÓ ´Ô¸ ÒÙѵ<br />

ؽ¸Ø¾℄ ÓÒØÓ ´Ô½¸ Ô¾¸ Õµ<br />

Ø℄ ×ÐØÓ´Ô¸ Õ¸ ·½¸ ½µ<br />

Ø℄ ÓÔÝÓ´Ô¸ Õ¸ ·½¸ ¹·½µ<br />

Table 3.8: Equivalent tuple operations for control and iconic data<br />

3.5.4 Tuple Creation<br />

The simplest way to create a tuple, as mentioned in section 3.2, is the use of constants together<br />

with the ××Ò operator:<br />

××Ò´℄¸ÑÔØÝØÙÔе<br />

××Ò´½½¸ÓÒÒØÖµ<br />

××Ò´½½¸¼º½℄¸ØÛÓÒÙÑÖ×µ<br />

This code is displayed as<br />

ÑÔØÝØÙÔÐ ℄<br />

ÓÒÒØÖ ½½<br />

ØÛÓÒÙÑÖ× ½½¸¼º½℄<br />

This is useful for constant tuples with a fixed (small) length. More general tuples can be created<br />

by successive application of the concatenation or the Ò×ÖØ function together with variables,<br />

expressions or constants. If we want to generate a tuple of length 100, where each element has<br />

the value 4711, it might be done like this:<br />

××Ò´℄¸ØÙÔе<br />

ÓÖ ½ ØÓ ½¼¼ Ý ½<br />

××Ò´ØÙÔи½½℄¸ØÙÔе<br />

ÒÓÖ<br />

which is transformed to<br />

ØÙÔÐ ℄<br />

ÓÖ ½ ØÓ ½¼¼ Ý ½<br />

ØÙÔÐ ØÙÔи½½℄<br />

ÒÓÖ<br />

HALCON 6.0

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

Saved successfully!

Ooh no, something went wrong!