title: Draw a curve line going through the blobs in OpenCV C++
body: <p>I am trying to draw a line that goes through the given blobs. The following is a given example</p>
  
  <p><img src="https://i.stack.imgur.com/7k4b7.jpg" alt="enter image description here"></p>
  
  <p>I want a curve line that goes through multiple blobs in horizontal direction as shown below.</p>
  
  <p><img src="https://i.stack.imgur.com/YRZRg.jpg" alt="enter image description here"></p>