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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3Style Guide for ProgrammingThe following chapter contains some recommendations for implementing new <strong>HALCON</strong> operators.They aim on portable code that should be easy to understand for other <strong>HALCON</strong>programmers. One of the major topics is the memory management discussed in section 3.2.3.1 Basic Numeric Data TypesThis section describes the usage of basic numeric data types. Since C makes no assumptionabout the size of integers, the following types have been defined:Type NameÁÆ̽ÀÌÍÁÆ̽ÁÆ̾ÍÁÆ̾ÁÆÌÍÆÌÁÆÌ ÍÁÆÌ ÁÆÌÍÁÆÌSize/Range of Valuesone byte with signone byte, unsignedthesameasÀÌtwo bytes with sign (generally ×ÓÖØ)two bytes, unsignedfour bytes with signfour bytes, unsignedfour or eight bytes with signfour or eight bytes, unsignedAt least two, maximal eight bytes with signAt least two, maximal eight bytes, unsignedUsing these types ensures the portability of <strong>HALCON</strong> operators.3.1.1 Local Variables / Temporary ResultsTypes and sizes for local variables (no arrays) should be handled as follows:37

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

Saved successfully!

Ooh no, something went wrong!