Bitwise Operators
Learn about bitwise operators and their applications.
We'll cover the following...
Instead of just stacking images, we might also want to combine images. In this lesson, we’ll use bitwise operators to combine images in OpenCV. We’ll work with black and white images to better understand these operators.
What are bitwise operators?
There are four basic bitwise operators—AND
, OR
, XOR
, and NOT
. These operators are frequently used to edit images, especially while working with masking images.
To see them in action, we’ll first create a blank image. We’ll use that blank image to draw different shapes and learn how bitwise operators can be used with them.
To create a blank image, ...