6.2   Object Generation

This section describes the convenience routines HNewRegion, HPutRect, and HDupObj for creating new image objects, see figure 6.8.

HNewRegion creates a new image object in the HALCON database encapsulating the specified region and adds this object to the first output object parameter. HPutRect inserts a rectangular region (as domain, i.e., area of definition) into an already existing output image object. Finally, HDupObj adds an iconic input object to the object list of the first output object parameter.

Names

    HNewRegion, HPutRect, HDupObj

Synopsis

    #include "Halcon.h"

    HNewRegion(Hproc_handle  proc_handle,
               Hrlregion     *region)
   
    HPutRect(  Hproc_handle  proc_handle,
               Hkey          obj_key,
               HIMGDIM       width,height)

    HDupObj(   Hproc_handle  proc_handle,
               INT4_8        obj_index)

Figure 6.8: Convenience routines for creating output objects.