Least squares solution of a point cloud to a surface
2 views (last 30 days)
Show older comments
Samuel Arnold
on 5 Feb 2015
Commented: Star Strider
on 12 Feb 2015
Hi, I have a point cloud in the form of 3 vectors (x,y,z), that have come from a 3D imaging technique. These represent a surface, plus noise and some bigger deviations (wrinkles).
To understand the extent of these wrinkles I want a least squares solution of the perpendicular distance of these points to the ideal surface (lets say a hemisphere).
procrustes is no good... I can't create a point cloud of the same number of points as my data. Even if I could the grouping of points on my data due to parts of the image would skew the results when compared to randomly distributed points...
Any ideas? Thanks in advance
0 Comments
Accepted Answer
Star Strider
on 5 Feb 2015
The perpendicular distance to the sphere surface would be easiest. Describe your hemisphere as in the Wikipedia article on Sphere, then do a nonlinear least squares fit to it with nlinfit, lsqcurvefit, fminsearch, or the Curve Fitting Toolbox functions.
2 Comments
More Answers (0)
See Also
Categories
Find more on Point Cloud Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!