Text this: B-spline contour reconstruction algorithm based on image contour concavity and convexity.