Recently, I'm working with my course assignment about image processing with OpenCV. I just want to ask, why the 'and' operator differs in result with '&' operator because it gives significant differences on the picture? Just see the pictures on the link below:
Asked
Active
Viewed 39 times
0
-
If you just add an `!` before image links they will be displayed inline. – petezurich Jan 23 '20 at 06:40
-
how are the images related to the question? – wookiekim Jan 23 '20 at 06:41
-
The `and` operates on boolean values, `&` operates on bits of integers. – Barmar Jan 23 '20 at 06:41
-
@wookiekim He didn't post the code, but presumably he's using the operators in some kind of masking loop on the pixel values. – Barmar Jan 23 '20 at 06:42