Python Forum
Open CV cv2.bitwise_and() function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Open CV cv2.bitwise_and() function
#3
The bitwise operation is performed on the pixels, not the pixel colors. The color setting for your circular mask is irrelevant, as long as it is not 0. If the mask pixel color is 0, the masked_img pixel color is 0. If the mask pixel color is not zero the masked_img pixel color is the img pixel color.
Reply


Messages In This Thread
Open CV cv2.bitwise_and() function - by rickyw2777 - Feb-01-2025, 06:41 PM
RE: Open CV cv2.bitwise_and() function - by deanhystad - Feb-03-2025, 01:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  with open context inside of a recursive function billykid999 1 1,338 May-23-2023, 02:37 AM
Last Post: deanhystad
  How to Properly Open a Serial Port in a Function bill_z 2 8,403 Jul-22-2021, 12:54 PM
Last Post: bill_z
  replacing the open function Skaperen 2 3,409 Jan-27-2019, 02:45 AM
Last Post: Skaperen
  What default directory does "open" function draw from? Athenaeum 4 4,964 Oct-07-2017, 06:15 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020