title: How to extract a portion of an image given a particular color?
body: <p><a href="https://i.stack.imgur.com/PrTid.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PrTid.png" alt="PNG image"></a>I have an image (shown below). I want to extract only the pink colored portion and remove the rest of the image. I have the RGB value of pink stored in an array. Is there any way that I can use <code>bitwise_and</code> on the image and the color so that I can single out the required portion in OpenCV?</p>
  
  <p><img src="https://i.stack.imgur.com/YdcW6.jpg" alt=""></p>