class="resources" Fitting on a Sphere (Not in Base Package) - LabVIEW 7.1 Help - Support - National Instruments
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Fitting on a Sphere (Not in Base Package)

Determines the best spherical fit on a cloud of points in 3D. Details  Example

X is the x coordinates of the points of the cloud.
Y is the y coordinates of the points of the cloud.
Z is the z coordinates of the points of the cloud.
x0, y0, z0 are the calculated midpoints of the given cloud.
r is the calculated radius of the given cloud.
error returns any error or warning condition from the VI. Most error situations result from discrepancies between the sizes of X, Y, and Z. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Fitting on a Sphere Details

The min-functional is based on an uncommon idea: find x0, y0, z0, and r with

This leads to a simple linear equation in x0, y0, z0 where (xi, yi, zi) are the given points, (x0, y0, z0) is the unknown midpoint, and r is the unknown radius.

Example

Refer to the Fitting on a Sphere Example VI in the labview\examples\math\optimiz.llb directory for an example of using the Fitting on a Sphere VI.

 


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit