1 | initial version |
Can you please make other definition of what is "perfect" curves, because I am not sure I understand it correctly? Skeletonization of objects is a morphological operation that is unrelated to Bezier curves.
If you want thinner edges you may use Canny edge detection instead of your own. Its last stage is non-maximal suppression that results in one pixel wide edges. Canny's documentation