This section describes two macros that ease the access of all iconic objects and image components within an input iconic parameter, see figure 5.15. Please see also the additional loop macros in section “Loop Macros” that further facilitate the programming of typical supply procedure.
Names
HAllObj, HAllComp
Synopsis
#include "Halcon.h" HAllObj( Hproc_handle proc_handle, int par_num, Hkey &obj_key, INT4_8 &index) HAllComp(Hproc_handle proc_handle, Hkey obj_key, Hkey &image_in_key, Himage &image_in, INT4_8 &index)
Figure 5.15: Basic loop macros to access iconic objects. “&” denotes output parameters of the macros. This is only a special notation to make clear that these parameters are changed by the macros. So do not pass pointers to variables but the variables itself to the macro.