How would I go about creating an animation of one smooth nonintersecting closed curve being continuously morphed into another closed curve? Additionally, the curves are not given analytically, but are taken from a .png image. One particular example is shown below --- I want to get the second curve from the first (little circles inside the shapes can be ignored). Any advice would be much appreciated! enter image description here

  • 5
    $\begingroup$ Hi, take a look at Homotopy Visualization $\endgroup$ – Kuba Jan 6 '16 at 13:33
  • $\begingroup$ Thanks, that looks like exactly what I need! $\endgroup$ – Vitaly B Jan 6 '16 at 13:41
  • $\begingroup$ @Kuba I have tried some test examples (two larger objects with two smaller objects above them) with the top answer in the linked thread (others do not produce a homotopy) and it seems to break down regularly with the error message "Interpolation::per: In dimension 1 the data at the endpoints of the fundamental period are not equal." I am not very experienced with Mathematica, so I tried to tweak it to no avail. Could you or anyone else provide a working example for a particular case of this image: i.imgur.com/xFbSVIK.png? $\endgroup$ – Vitaly B Jan 6 '16 at 21:42