title: smoothing in a particular area of image
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8206466/how-to-set-roi-in-opencv">How to set ROI in OpenCV?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm trying to use a smoothing/blur filter on an image but only in a particular path /area of the source. (Using openCV currently)</p>
  
  <p>How can that be done?</p>
  
  <p>right now I'm doing something like</p>
  
  <pre><code>cv::GaussianBlur(im, newim, cv::Size(5,5),1.5);
  </code></pre>
  
  <p>But I would like to be doing</p>
  
  <pre><code>cv::GaussianBlur(im, newim, cv::Size(5,5),1.5,MyClosedPath);
  </code></pre>
  
  <p>I can also use any of the ios classes if it is easier to do. (Haven't found a way for that yet either)</p>