title: How to draw a rounded rectangle (rectangle with rounded corners) with OpenCV?
body: <p>How can I draw a rectangle with rounded corners in OpenCV? I know that the functions ellipse() and line() can be simply put together to draw it. I just wonder if someone has done it before and has put it in a proper function so I can use it? Ideally the corner radius is to calibrate  in a parameter. </p>
  
  <p>I searched a lot for that, but it seems no one had that problem before. If no one has such I function I will probably post my own solution here in a few days.</p>