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.

2.2. EXTENDED OPERATOR DESCRIPTION 17Note, that all slots specified within the operator description are accessible online within the<strong>HALCON</strong> system using the operator Ø ÓÔÖØÓÖ ÒÓ, see the Reference <strong>Manual</strong>s for details.Describing the single parameters completes the operator description. Section 2.3 explainshow to do this.2.2.1 HeaderThe operator description starts with the headerÜØÖÒÓÔÖØÓÖÒÑ ¹ ÁÒØÖÒÈÖÓÙÖÁÒÔÙØÇØ×ÇÙØÔÙØÇØ×ÁÒÔÙØØÖÐÈÖÑ×ÇÙÔÙØØÖÐÈÖÑ×℄Note, that in contrast to the short version described in section 2 the header doesn’t containany information about the types of the control parameters (e.g. °) and does not end with asemicolon (;).The following example is a short version of the operator description for the dynamic thresholdoperator ÝÒ ØÖ×ÓÐ. For better legibility there should be a comment at the beginning ofevery operator description, like» ÝÒØÖ×ÓÐ »ÝÒØÖ×ÓÐ ¹ ÁÈÝÒÌÖ×ÓÐÇÖÁѸÌÖ×ÓÐÁÑÊÓÒÝÒÌÖ×Ç×ظÄØÖ℄Comments within -files are indicated according to the C-syntax (» ººº »).There are a couple of conventions/restrictions concerning the names of parameters: All wordparts should begin with a capital letter (e.g., ÊÓÒÝÒÌÖ×). They are directly concatenatedwithout any separating character. Especially, they must not contain any underscore (‘ ’)!The external operator name exclusively consists of lower-case characters with word parts separatedby underscores. This operator name is used within C programs, low-level calls 1 of theoperator in C++, or within HDevelop.The four parameter classes (input-/output object/control) are separated by colons (:). One classis described by a list of all parameter names within the class separated by commas. If there is nomember of a class for an operator, the list remains empty. The example described above definesthe following mapping between parameters and parameter classes:parameter class keyword (cf. page 27) parameter in the exampleinput iconic objects ÒÔÙØ ÓØ OrigImage, ThresholdImageoutput iconic objects ÓÙØÔÙØ ÓØ RegionDynThreshinput control parameters ÒÔÙØ ØÖÐ Offset, LightDarkoutput control parameters ÓÙØÔÙØ ØÖÐ 1 Within the <strong>HALCON</strong>/C++ class hierarchy corresponding methods use slightly different conventions:ÜØÖÒ ÓÔÖØÓÖ ÒÑ is transformed into ÜØÖÒÇÔÖØÓÖÆÑ.<strong>HALCON</strong> 6.0

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

Saved successfully!

Ooh no, something went wrong!