5.5.14   HPutElemH

HPutElemH (see figure 5.35) writes num handle references to the output control parameter with the index par of a HALCON operator. elem points to an array that holds num elements. HHandleInfo contains information about the type of the corresponding handles. Most notably,HHandleInfo contains pointers to the functions that operate on the handles (clear, serialize, deserialize and signal).

Note that the output control variable gains ownership of all pointers that are in elem. When aborting an operator with an error, those values must not be cleared inside the operator's code, but will be cleared automatically when cleaning the output control variable.