EllipsoidFit is a collection of Java classes designed to fit points to a polynomial expression of an ellipsoid. EllipsoidFit uses an algorithm based on Yury Petrov's Ellipsoid Fit MATLAB script. The algorithm fits points from an ellipsoid to the polynomial expression Ax^2 + By^2 + Cz^2 + 2Dxy + 2Exz + 2Fyz + 2Gx + 2Hy + 2Iz = 1. The polynomial expression is then solved and the center and radii of the ellipse are determined. It has useful applications in compensating both accelerometers and magnetometers. You can get EllipsoidFit to try for yourself on GitHub.
- Magnetic Hard Iron Offsets
- Magnetic Soft Iron Offets
- Sensor Calibration
- Fit an ellipsoid to a polynomial expression