5.4   Creating Objects and Writing Output Object Parameters

This section describes routines for creating new iconic objects in the HALCON database of iconic objects and for writing output iconic parameters of a HALCON operator, see figure 5.18. Note that regions, gray value channels, and XLDs are all stored as individual iconic objects within the database. Thus, for example different image objects can share the same gray value channels (image matrices) or domains (areas of definition). Therefore, in order to return iconic objects as the result of a HALCON operator you have to

Names

    HCrObj, HCopyObj, HPutDRL, HPutImage

Synopsis

    #include "Halcon.h"

    HCrObj(          Hproc_handle  proc_handle,
                     int           par_num,
                     Hkey          *obj_key)

    HCopyObj(        Hproc_handle  proc_handle,
                     Hkey          obj_key,
                     int           par_num,
                     Hkey          *obj_key)

    HPutDRL(         Hproc_handle  proc_handle,
                     Hkey          obj_key,
                     Hrlregion     *region,
                     Hkey          *rl_key)

    HPutImage(       Hproc_handle  proc_handle,
                     Himage        *image,
                     bool          copy,
                     Hkey          *obj_key)

Figure 5.18: Basic routines for creating new iconic objects and writing output iconic parameters (to be continued).

Names

    HDefObj, HPutDImage, HCrImage, HCrXLD

Synopsis

    #include "Halcon.h"

    HDefObj(         Hproc_handle  proc_handle,
                     Hkey          obj_key,
                     Hkey          comp_key,
                     int           comp)

    HPutDImage(      Hproc_handle  proc_handle,
                     Hkey          obj_key,
                     int           comp,
                     Himage        *image,
                     bool          copy,
                     Hkey          *image_key)

    Herror HCrImage( Hproc_handle  proc_handle,
                     Hkey          image_key_in,
                     int           index,
                     int           type,
                     HIMGDIM       width,height,
                     Hkey          *image_key_out,
                     Himage        *image_out)

    HCrXLD(          Hproc_handle  proc_handle,
                     int           par_num,
                     XLD           *xld,
                     int           xld_type,
                     Hkey          *used_xlds,
                     int           num_used_xlds,
                     DBFreeProc    free_proc,
                     Hkey          *obj_key)

Figure 5.19: Basic routines for creating new iconic objects and writing output iconic parameters (continued).