0
votes

TL;DR - How do I only analyse the surface data points for surface estimation?

I have a 3D object, and I would like to estimate the surface shape.

The problem is: MATLAB curve fitting toolbox takes into account all the data points of the object. See the example of a cylinder and it's approximated polynomial. MATLAB is taking into account all the data points for surface estimation, what can I do to over come this?

Cylinder Estimation

1
what you need is an algorithm to fit a surface mesh to your data points. Maybe mesh growing?Anthony
Thank you for this information @Anthony. I have had a quick google and will continue to investigate 'mesh growing'. However, I would like to know if you are aware of a specific MATLAB or Python function that can help me do this?keyserSoze
you can try delaunay, but it is likely to generate tetrahedron inside/under the surface.Anthony

1 Answers

0
votes

Assuming that the outer and inner surface have identical shape, you can first do an imfill to make the object solid and then use morphological skeleton, bwmorph(BW,'skel',Inf) to turn it into a single line, which you then can approximate the shape from.