Chapter 17   The HALCON Parameter Classes

HALCON distinguishes four different classes of operator parameters:

Input parameters are passed by value, output parameters are passed by reference (using the &-operator). An exception to this rule are output control parameters of type char*. Here, the caller has to provide the memory and only a pointer to that memory is passed to the operator.

Most HALCON operators can also be called using tuples of parameters instead of single values (so-called tuple mode). Take the operator threshold from our example program in the previous chapter, which segments an image and returns the segmented region: If you pass a tuple of images, it will return a tuple of regions, one for each input image. However, in contrast to HDevelop and other programming interfaces, in HALCON/C the tuple mode must be selected explicitly by prefixing the operator with T_ and by using tuples for all control values (see section “Control Parameters” for more details). Whether an operator can be called in tuple mode can be seen in the HALCON reference manual.

HALCON/C provides the data structure Htuple for tuples of control parameters (see section “The Tuple Mode” for details) and the data structure Hobject for image objects (single objects as well as object tuples — see section “Image Objects”).