ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Circle Fit Example

Solved!
Go to solution

Has anyone seen any good examples of fitting to a circle?

To make things clear:

Given a set of x,y points, return the centre and radius of a circle which best fits the data.

 

Many Thanks

Nick
0 Kudos
Message 1 of 6
(6,317 Views)
Solution
Accepted by topic author niNickC

There's a VI called "Fitting on a Sphere VI" that can do what you want. You just need to use a value of zero for Z data points.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


Message 2 of 6
(6,310 Views)

Did you do a Web search?  A number of algorithms are out there -- pick one that seems appropriate for your data set.

 

Bob Schor

Message 3 of 6
(6,308 Views)

Yea I did spot this and tried exactly what you said with no success. Then I looked again and realised I messed up. (Forgot about the displayed precision!)

.. yeah ...

 

Thanks though!

Nick
0 Kudos
Message 4 of 6
(6,292 Views)

http://lmgtfy.com/?q=circle+fit+algorithms

Yea just trying to save some dev time!

Nick
0 Kudos
Message 5 of 6
(6,290 Views)

@niNickC wrote:

http://lmgtfy.com/?q=circle+fit+algorithms

Yea just trying to save some dev time!


Since you are interested in a LabVIEW solution, a forum search here would have immediately found many example of James's suggestion above.

 

For example look here

 

Message 6 of 6
(6,231 Views)