DIAdem Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
AlphaTreo

Use Pratt Method for Fitting Circular Data

Status: Declined

Hello

Thank you for your request. We understand your suggestion but given the age of this entry and the fact that just a few sponsors are supporting it, we have decided to decline this suggestion and prefer to develop more frequently requested features instead. We hope you understand this. 

Greetings

Walter

Whatever method is used in the "Calculate Circle Approximation" does not do well if there are not points around an arc which is close to 360°.  I suspect the Kasa method, or something similar is used (link to Matlab code:  http://blogs.mathworks.com/pick/2008/03/14/fitting-a-circle-easily/).  This method works well if there are points all around the 360° of a circle, but not so well if the data only covers an arc.  If you go to Chernov's page ( http://www.math.uab.edu/~chernov/cl/) you can find a link to Matlab code for the Pratt Method ( http://www.math.uab.edu/~chernov/cl/MATLABcircle.html), which works great for arcs.  Although I have not tested it, I suspect the Pratt Method works well for data distributed across 360° as well.  If that is the case, I would recommend that you either add an "arc fitting" function using the Pratt Method or replace the method used in the "Calculate Circle Approximation" with the Pratt Method.

 

Attached is an image of an example of latitude and longitude data.  Note that, because this is lat & lon data, the circles look like ovals, but they really are circles.  I was trying to fit a circle to the red curve between the two vertical black cursor lines.  The green circle was obtained by using the "Calculate Circle Approximation" function while the blue circle was calculated via the Pratt Method.

1 Comment
Walter_Rick
NI Employee (retired)
Status changed to: Declined

Hello

Thank you for your request. We understand your suggestion but given the age of this entry and the fact that just a few sponsors are supporting it, we have decided to decline this suggestion and prefer to develop more frequently requested features instead. We hope you understand this. 

Greetings

Walter