Method to find the best fitting circle

Hi there,

I have list of pixels from a circle which I extruded from my image. Now I am searching for a method which will find the best circle fit using this list. Do you have such a method in CVB?

Output should be the center pixel and radius.

regards,
David

1 Like

Hi David,

there are the CalculateCircleRegression() and CalculateEllipseRegression() Methods in the :cvb: Foundation package which do exactly what you want to do. But be aware that all of the points are considered and some outliers can distort your results.

regards,
Arno

2 Likes

Thanks,

I will try that and write again if there are open questions.