The macro HCkNoObj (see figure 5.39) is used to check whether all iconic input parameters of an operator contain at least one iconic object. Otherwise, the supply procedure is exited with a return code depending on the current setting of no_object_result accessible by the HALCON operators set_system and get_system (see the Reference Manuals for details). The default setting for no_object_result is H_MSG_TRUE, that means HCkNoObj reports “no error” in case of empty iconic input parameters. Note that in this case all output parameters are also empty.
We recommend to call
HCkNoObj(proc_handle);
at the beginning of the supply procedure for every operator with iconic input objects to guarantee the existence of iconic data to be processed within the operator.