title: OpenCV: Making a curve straight
body: <p><img src="https://i.stack.imgur.com/XM8Xp.jpg" alt="enter image description here"></p>
  
  <p>How do I make this curve a straight line  of the same length (basically by unbending it )? I guess I need to apply some kind of non-linear transformation. But I am not sure which transformation will work  best here. </p>
  
  <p>Please note that if I try taking its projection on a straight line, I will end up with a shorter line.  </p>
  
  <p>Please provide your suggestions.    </p>