title: How to Apply Mask to Image in OpenCV?
body: <p>I want to <strong>apply a binary mask</strong> to a color image.
  Please provide a basic code example with proper explanation of how the code works.</p>
  <p>Also, is there some option to apply a mask permanently so all functions operate only within the mask?</p>