title: Apply erosion to only a portion of an image
body: <p>I am new to opencv and I couldn't find any solution for this problem of mine.</p>
  
  <p>I wonder if it is possible to apply erosion/dilation only to a specific portion of an image and let the rest of the image remain as it is originally.</p>