8.5.12   Boolean Operations

Operation Meaning HALCON operator

l1 and l2 logical 'and' tuple_and
l1 xor l2 logical 'xor' tuple_xor
l1 or l2 logical 'or' tuple_or
not l negation tuple_not

Table 8.19: Boolean operations.

The boolean operations and, xor, or, and not are defined only for tuples of length 1. l1 and l2 is set to true (1) if both operands are true (1), whereas l1 xor l2 returns true (1) if exactly one of both operands is true. l1 or l2 returns true (1) if at least one of the operands is true (1). not l returns true (1) if the input is false (0), and false (0), if the input is true (1).