Approximating image outline with lines and splines

Sample image and/or code

  • Upload an original image file here directly or share via a link to a file-sharing site (such as Dropbox) – (make sure however that you are allowed to share the image data publicly under the conditions of this forum).
  • Share a minimal working example of your macro code.


  • What is the image about? Provide some background and/or a description of the image. Try to avoid field-specific “jargon”.

Analysis goals

  • What information are you interested in getting from this image?


  • What stops you from proceeding?
    how t approxiamte a image with just line and splines

  • What have you tried already?
    no,trying it

  • Have you found any related forum topics? If so, cross-link them.

  • What software packages and/or plugins have you tried?
    trying in opencv

example :

Is this

(magenta curve) what you are looking for?