title: OpenCV: Change colour of pixel
body: <p>Using OpenCV, I am detecting a face, detecting the left and right eyes of that face, and extracting the eye into a new Mat image. I am then converting the eye image colour from BGR to HSV.</p>
  
  <p>I am checking to see if the eye colour is in a certain range using inRange(). This displays the area of the eye that is red (see below image).</p>
  
  <p><img src="https://imgur.com/7qXdI8P.png" alt=""></p>
  
  <p>My question is: I would like to change the eye colour (detected using inRange()) from red to black. I'm not too sure where to go from here. </p>
  
  <p>Any help is appreciated!
  Thanks!</p>
  
  <hr>
  
  <p>Current result:</p>
  
  <p><img src="https://imgur.com/JDe7C49.png" alt=""></p>