py_eddy_tracker.poly.fit_ellipse¶
- py_eddy_tracker.poly.fit_ellipse(x, y)[source]¶
From a polygon, function will fit an ellipse.
Must be call with local coordinates (in m, to get a radius in m).
\[(\frac{x - x_0}{a})^2 + (\frac{y - y_0}{b})^2 = 1\]\[(\frac{x^2 - 2 * x * x_0 + x_0 ^2}{a^2}) + \frac{y^2 - 2 * y * y_0 + y_0 ^2}{b^2}) = 1\]In case of angle https://en.wikipedia.org/wiki/Ellipse