Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Galadirith/2c210dfd18c94ce46b341792c2bfd535 to your computer and use it in GitHub Desktop.
Save Galadirith/2c210dfd18c94ce46b341792c2bfd535 to your computer and use it in GitHub Desktop.
Use least squares to find the cubic bezier equation of a hand drawn arc. This ipython notebook uses sympy to derive the equations needed to setup the least squares fitting problem. It then creates some noisy data on an arc and shows that the best fitting process works quite well.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Galadirith
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment