I want to generate a parametric equation for a closed curve, which is defined in a 2d image (such as below). The equation is {x{t}, y{t}}
; t
is the length of the curve from an arbitrary starting point. I want to be able to give the equation to ParametricPlot
an get the same closed curve.
A list of points {t, x(t), y(t)} are first extracted from the image in order. Then the data is used to form an InterpolatingFunction.
A single data point {t0, x(t0), y(t0)} seem to correspond to many pixels due to finite image resolution. How can I extract the desired points list?