简体   繁体   中英

Fitting 3D ellipsoid to a set of 3D data points

I have set of points whose 3D coordinates are x , y and z and I have to determine the best fit ellipsoid to their distribution. What makes it difficult is that my points are not distributed on an ellipsoidal surfaces, but they approximately fill the space defined by a cigar. I usually work with python/C and I know this question has been asked before, but I couldn't find any satisfactory answer. Do you know how I could solve this issue?

A possibility is to: i) take the convex hull of the shape. ii) take only extremal points (ie those lying on the boundary and not inside). iii) use a standard ellipsoid fitting algorithm eg https://github.com/pierre-weiss/FitEllipsoid .

The main difficulty from what I understood, is that ellipsoid fitting algorithms assume points to be on the boundary. Steps i) and ii) would allow discarding the inside points quite easily.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM