Comments (5)
As far as I recall, it is not related to finding the ellipsoid, it is using the ellipsoid found to calibrate the magnetometer. The perfectly calibrated one would be returning such "spherical" data, i.e. when you rotate it by x degrees, the magnetic field data should indicate that. TR is the transformation you would apply to raw data to get the calibrated one.
I think the previous issue / question was about that.
from ellipsoid_fit_python.
I think it is just scaling along the principal axes of the ellipsoid we find.
from ellipsoid_fit_python.
Thanks for the answer!
Yes I understand that this is for magnetometer raw data transformation ( I want to use it for that as well! :) ) I just dont understand what are these calculations:
a, b, c = radii
r = (a * b * c) ** (1. / 3.)
D = np.array([[r/a, 0., 0.], [0., r/b, 0.], [0., 0., r/c]])
#http://www.cs.brandeis.edu/~cs155/Lecture_07_6.pdf
#affine transformation from ellipsoid to sphere (translation excluded)
TR = evecs.dot(D).dot(evecs.T)
The ellipsoid_fit function already returns the evecs, that is a transformation matrix in itself isn't it?
from ellipsoid_fit_python.
One more question here. In the original matlab code, it was possible to call the function with the 'xyz' parameter. That way (at least from the code comments) it seems that the algorithm will produce a sphere fitting.
Can you remember why you choose to implement the arbitrary one?
from ellipsoid_fit_python.
As far as I remember, the author created several options for symmetrical ellipsoids, but the most relevant to magnetometer calibration was the arbitrary one. What is the reason in fitting a sphere to the points if you want to find a transformation from the ellipsoid to sphere? If your data fits to sphere, the most arbitrary method will still work, just the axes in the result would be of equal length.
I understand it can be useful sometimes, as well as other options in the original, it just was not useful for me. In the end you can easily substitute the equation yourself. The code in this repo is not perfect, neither it is universal, I just shared what I had.
from ellipsoid_fit_python.
Related Issues (14)
- Convert to python3 HOT 2
- Data not being plotted/fitted correctly? HOT 5
- Why you may get unpredictable results.
- Package in PIP HOT 4
- Using data from get_calibration_ellipsoid.py HOT 3
- Uncertanty estimation HOT 4
- Fit using test data does not match matlab fit HOT 8
- Rotation in ellipsoid_plot function is incorrect. HOT 4
- Wrong return function HOT 2
- Unexpected results on sets of points HOT 7
- Is this package suitable for calibrating an Accelerometer? HOT 1
- Value Error: HOT 4
- Plotting does not work with newer Matplotlib. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ellipsoid_fit_python.