Calculate the Curvature of a Centerline of C. elegans
Below, the left panels are the original centerlines, the middle panels are smoothed centerlines, and the right panels are interpolated smoothed centerlines.
A perfect sinusoidal curve is generated to test these codes.