The interpclosed function creates piecewise polynomial fits of 2D closed curves given by a set of points. The function can be used to:
(i) return the fit itself;
(ii) interpolate values within the curve using an arc-length parametrization;
(iii) compute the area, perimeter, centroid, and second moments of area of the curve.
The arc-length parametrization is very useful in this kind of application because these piece-wise polynomial fits usually have different sampling spacing with equally spaced parameter queries.
The computation of the centroid and second moments of area enables the detection of rotations and translations of the closed shapes.
Several examples can be found in the examples tab.
This function was inspired largely by the functions cscvn, interparc and arclength.
Programmed by Santiago M. Benito at the Chair of Materials Technology of the Ruhr-Universität Bochum, Germany.