Operator Library: Logic
The operator OR performs a bitwise logical OR operation. Each output bit is set to a logical "1" if any of the corresponding bits is "1", 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 OR is shown in the following examples:
-
Examples - The implementation can detect four simple patterns in a binary image. For every match, the output will be set to one.
-
Examples - A grid is overlayed to the input images. The grid pixel value is determined from the input pixel value.