What does cv2 Bitwise_not do?
bitwise_not function. Essentially, the bitwise NOT function flips pixel values. All pixels that are greater than zero are set to zero, and all pixels that are equal to zero are set to 255 : Figure 6: Applying a bitwise NOT with OpenCV.
What does cv2 bitwise_and do?
The bitwise_and operator returns an array that corresponds to the resulting image from the merger of the given two images. The operation of bitwise_and can be done on images having same dimensions only.
How do I add two pictures to OpenCV?
You can add two images with the OpenCV function, cv. add(), or simply by the numpy operation res = img1 + img2. Both images should be of same depth and type, or the second image can just be a scalar value.