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.

38 CHAPTER 3. STYLE GUIDE FOR PROGRAMMINGType Size C-Data Type1 byteÁÆÌ or ÍÁÆÌ2 byteInteger3 byteÁÆÌ or ÍÁÆÌ 4 byteFloating-point Number ÓÙÐ3.1.2 Procedure ParametersParameters of procedures should be of the following types within <strong>HALCON</strong>:Type Size C-Data TypeInteger1 byte2 byteÁÆÌ3 byte4 byteÁÆÌ Floating-point Number ÓÙÐStructure pointer3.1.3 ArraysFor arrays or structures (i.e. larger sets) always the smallest possible data type should be used.Type Size C-Data Type1 byte ÁÆ̽2 byte ÁÆ̾ oder ÍÁÆ̾Integer3 byteÁÆÌ oder ÍÁÆÌ4 byte4 byte ÐÓØFloating-point Number8 byte ÓÙÐStructurepointer3.2 Memory Management<strong>HALCON</strong> provides a sophisticated memory management not only to handle iconic objects,but also to allocate/deallocate arbitrary data. Please use the corresponding <strong>HALCON</strong> <strong>Extension</strong><strong>Package</strong> Interface routines exclusively. Do not create/destroy memory blocks on the heapwith the standard routines of the operating system (like ÑÐÐÓ and Ö) since the <strong>HALCON</strong>routines provide a caching mechanism, garbage collection for temporary data, and debuggingfacilities.We strongly recommend not do use global variables within <strong>HALCON</strong> operators. If they arenot avoidable at least make them ×ØØ within the file of usage. If even this is undesirablegroup them into structures to keep the number of global names small.<strong>HALCON</strong> <strong>Extension</strong> <strong>Package</strong> Interface / 2000-11-16

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

Saved successfully!

Ooh no, something went wrong!