Operator Library: Logic
The operator XOR performs a bitwise logical XOR (exclusive OR) operation. Each output bit is set to a logical "1" if the sum of the corresponding input bit values is odd, otherwise the output is "0". The number of input links has to be selected at the instantiation of the module.
Thus the output bit i of n inputs is
Property | Value |
---|---|
Operator Type | O |
Input Links | I0, data input I1..In-1, data input |
Output Link | O, data output |
The use of operator XOR is shown in the following examples:
-
Examples - A binary eroded image is compared with the original. An edge is detected if both differ.