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.

44 CHAPTER 3. STYLE GUIDE FOR PROGRAMMINGmight implicitly change one or more <strong>HALCON</strong> objects. Be aware that you have to take careabout such problems, if you decide not to use the standard <strong>HALCON</strong> memory management(that is ÀÆÛÁÑ).For both ÀÆÛÁÑ and ÀÆÛÁÑÈØÖ the pixel type of the raw data within Ñ is specifiedby the parameter Ò. Please see Fig. 4.2 on page 50 for the supported values.ÀÐÐÓÄÓÒØ allocates an XLD contour 2 of type ÀÓÒØ (see section 4.3) including memoryfor ÒÙÑ ÔÓÒØ× contour points. Internally this routine is based on ÀÐÐÓ. ÀÖÄÓÒØ isused to deallocate a contour again (inluding all the points and all attributes defined for ÓÒØ,see page 53).NamesÀÐÐÓÊĸ ÀÐÐÓÊÄÆÙѸ ÀÊÐÐÓÊÄÆÙѸ ÀÖÊÄSynopsisÒÐÙ ÀÐÓÒºÀÖÖÓÖ ÀÐÐÓÊÄ´ÀÖÖÓÖ ÀÐÐÓÊÄÆÙÑ´ÀÔÖÓÒÐ ÔÖÓÒиÀÖÐÖÓÒ ÖÓÒµÀÔÖÓÒÐ ÔÖÓÒиÀÖÐÖÓÒ ÖÓÒ¸×ÞØ ÐÒµÀÖÖÓÖ ÀÊÐÐÓÊÄÆÙÑ´ ÀÔÖÓÒÐ ÔÖÓÒиÀÖÐÖÓÒ ÖÓÒ×ÞØ ÐÒ¸ÀÖÐÖÓÒ ÒÛÖÓÒµÀÖÖÓÖ ÀÖÊÄ´ÀÔÖÓÒÐ ÔÖÓÒиÀÖÐÖÓÒ ÖÓÒµFigure 3.4: General memory management for region data.The convenience routines ÀÐÐÓÊÄ, ÀÐÐÓÊÄÆÙÑ, ÀÊÐÐÓÊÄÆÙÑ, and ÀÖÊÄ (seeFig. 3.4) are used for handling permanent region data based on ÀÐÐÓ. Otherwise their behaviouris similar to ÀÐÐÓÊÄÌÑÔ etc., see page 40. Note that it is possible to change the sizeof regions (i.e., the number of chords) using ÀÊÐÐÓÊÄÆÙÑ.2 In contrast to ÀÆÛÁÑ and ÀÆÛÁÑÈØÖ ÀÐÐÓÄÓÒØ also allocates memory for the structure ÀÓÒØitself, not only for the data inside that structure.<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!