ellipsoid_fit_python | Find ellipsoid fit for arbitrary data | Data Manipulation library
kandi X-RAY | ellipsoid_fit_python Summary
kandi X-RAY | ellipsoid_fit_python Summary
Find ellipsoid fit for arbitrary data with python/numpy, plot it or write to file.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ellipsoid_fit_python
ellipsoid_fit_python Key Features
ellipsoid_fit_python Examples and Code Snippets
Community Discussions
Trending Discussions on ellipsoid_fit_python
QUESTION
I have a large 3D point cloud that I'm trying to define the shape, size and volume of. I'm using scipy.spatial.convexHull
to find the convex hull of the point cloud which gives me the volume of the point cloud and I'm then using the vertices of the convex hull to fit an ellipsoid to that to define the size and shape. I identified two possible python modules for fitting of the ellipsoid : pyEllipsoid_Fit
(https://github.com/marksemple/pyEllipsoid_Fit) and ellipsoid_fit_python
(https://github.com/aleksandrbazhin/ellipsoid_fit_python) which both seem to derived from the same MATLAB library by Yury Petrov. This all sounds pretty simple.
I've shown a reduced set of points from my convex hull to give an idea of its shape but it's about 30,000 points in the cloud and the convex hull has about 2,000 vertices.
...ANSWER
Answered 2021-Mar-24 at 19:23In comparing these two approaches, both use a least squares approach but ellipsoid_fit_LS
is assuming that the major axes of the ellipse align with (x
, y
, z
) whereas the matlab knock-offs don't make this assumption. That is, they are more general and will produce better fits for ellipsoids that are tilted relative to the coordinate axes but therefore have more parameters to fit.
Good but different fits to data are always like this, with similar but not identical results. In general, a good start is to choose a fitting algorithm that has the fewest free parameters as possible but is consistent with the data and your model.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ellipsoid_fit_python
You can use ellipsoid_fit_python like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page