10.07.2015 Views

HALCON Extension Package Programmer's Manual

HALCON Extension Package Programmer's Manual

HALCON Extension Package Programmer's Manual

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

6.1. LOOP MACROS 89NamesÀÐÐʸ ÀÐÐËѸ ÀÐÐÐØÖ¸ ÀÐÐÐØÖ¾SynopsisÒÐÙ ÀÐÓÒºÀÐÐÊ´ ÀÔÖÓÒÐ ÔÖÓÒиÀÖÐÖÓÒ ÖÓÒ¸ÁÆ̲ÓÒܵÀÐÐËÑ´ ÀÔÖÓÒÐ ÔÖÓÒиÀÖÐÖÓÒ ÖÓÒ¸ÀÑѸÁÆÌÑÜÒÒÐ׸ÁÆ̲ÓÒܵÀÐÐÐØÖ´ ÀÔÖÓÒÐ ÔÖÓÒиÀÖÐÖÓÒ ÖÓÒ¸ÀÑÑÒ¸ÀÑÑÓÙظÁÆÌÑÜÒÒÐ׸ÁÆ̲ÓÒܵÀÐÐÐØÖ¾´ ÀÔÖÓÒÐÀÖÐÖÓÒÀÑÀÑÀÑÁÆÌÁÆÌÔÖÓÒиÖÓÒ¸ÑÒ½¸ÑÒ¾¸ÑÓÙظÑÜÒÒÐ׸²ÓÒܵFigure 6.1: Convenience loop macros to access iconic objects. “&” denotes output parametersof the macros. This is only a special notation to make clear that these parameters are changedby the macros. So do not pass pointers to variables but the variables itself to the macro.Note, that the ÀÔÖ arrays ÊÓÛ and ÓÐ are allocated with a fixed size on the stack usingÅ Ç ÈÊ ÈÊ. This define equals the maximum allowed number of objects per input objectparameter of a <strong>HALCON</strong> operator. Keep in mind that this number is quite large (100 000 in thecurrent version). Thus, it might be better to allocate the arrays dynamically using ÀÐÐÓÌÑÔ(see section 3.2.1) with only as much elements as needed (see ÀÊ맧ºµ on page 61).6.1.2 ÀÐÐËÑÀÐÐËÑ (see Fig. 6.1) extends ÀÐÐÊ: Not only the region but also all gray value chan-<strong>HALCON</strong> 6.0

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

Saved successfully!

Ooh no, something went wrong!