HCrObj (see figure 5.18) creates a new image object in the HALCON database of iconic objects and adds it to the list of iconic objects in the output iconic parameter with the index par_num. Note that more than one image object can be returned in the same output parameter by iterating calls of HCrObj using the same par_num: Each call appends the database key of the new iconic object at the end of the iconic object list for the parameter.
The new image object contains the following default image components:
Figure 5.17 and figure 5.21 show examples how to use HCrObj.
Note that HCrObj automatically checks the result state of the underlying procedure with the macro HCkP, (see section “HCkP”). Thus, you must not use HCkP on HCrObj yourself.