title: curve fitting in OpenCV
body: <p>Is there any opencv function for curve fitting?</p>
  
  <p>I have a set of points (cv::points) and my aim is to fit these points to a closed/open curve. </p>
  
  <p>Right now I am taking a pair of points and drawing lines with them, effectively forming a curve.</p>