Skip to content

Instantly share code, notes, and snippets.

View jasnyder's full-sized avatar

Jordan Snyder jasnyder

View GitHub Profile
@jasnyder
jasnyder / get_ellipse.py
Last active April 13, 2023 07:59 — forked from Gabriel-p/get_ellipse.py
Generate an ellipse through the MVEE method
import torch
import torch.linalg as la
# http://stackoverflow.com/questions/14016898/port-matlab-bounding-ellipsoid-code-to-python
# http://stackoverflow.com/questions/1768197/bounding-ellipse/1768440#1768440
# https://minillinim.github.io/GroopM/dev_docs/groopm.ellipsoid-pysrc.html
def mvee(points, tol=0.01):