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.

1.1. <strong>HALCON</strong> OPERATORS 3objects (or multi-channel images) within the supply procedure. The name of this proceduredesignates the internal C-procedure name specified in the -file (cf. sections 2 and 2.2).After preprocessing the input data, the action procedure is called within the supply procedure.This procedure performs the specific image processing. In most cases the action procedure receivesonly the already extracted single components (e.g., regions of type ÀÖÐÖÓÒ, channelsof type ÀÑ, or pointers to the raw image data) and parameter values. The results are returnedto the supply procedure where they are passed to the generated interface that returns themto the calling system. Any supply procedure returns an error code of type ÀÖÖÓÖ. Thus, it isnecessary to return an error code, which is À ÅË ÌÊÍ if no error occurred. In Windows NT andWindows 2000, the supply procedures (like ÁÈÍ×ÖÌÖ×Óдµ in ÔÙ×ÖØÖ×Óк)must be explicitly exported by the operator DLL ÔºÐÐ. This is done by the macroÀÍ×ÖÜÔÓÖØ as a prefix to ÀÖÖÓÖ, see Fig. 1.6. In UNIX environments ÀÍ×ÖÜÔÓÖØ maybe omitted, but in this case the package will not run on Windows NT and Windows 2000 systems.Only one parameter (a so called procedure handle) is passed to a supply procedure. All otherinput data (iconic objects and control values) is read and written with the help of this identifier.Moreover, it allows the unique identification of a <strong>HALCON</strong> operator call while running HAL-CON on parallel hardware. Instead of further parameters, all in- and output to and from thesupply procedure is done with the help of several (internal) buffers, as illustrated in Fig. 1.1.InputApplication ProgramsOutputC or C++ Interface<strong>HALCON</strong>DatabaseBufferBufferControl IconicControlIconicParameter Objects Parameter ObjectsSupply ProcedureAction ProcedureFigure 1.1: Data flow within <strong>HALCON</strong>.The buffer contains input data as well as output data. Control parameters (containing all kindof control values like integers, floating-point values or strings) are stored directly in the buffers,whereas all iconic data (including images, regions and XLDs) are represented by an object key.Accesses to iconic data can be done with the help of data base procedures by using these objectkeys. The <strong>Extension</strong> <strong>Package</strong> Interface provides special procedures and macros for reading andwriting elements of the parameter buffer within the supply procedure. Every parameter belongsto one of the four classes<strong>HALCON</strong> 6.0

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

Saved successfully!

Ooh no, something went wrong!