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 |
| 輸入連結 | I0, data input I1..In-1, data input |
| Output Link | O, data output |
The use of operator XOR is shown in the following examples:
-
範例 - 將二值化侵蝕影像與原始影像進行比較。 若兩者相異,則會偵測到邊緣。


上一頁

