Ellipse tools for Python
Project description
Ellipsinator
Tools for working with ellipses in Python.
Installation
Should be an easy pip install:
pip install ellipsinator
Usage
To fit an ellipse:
from ellipsinator import fit_ellipse_halir
c = fit_ellipse_halir(x, y)
from ellipsinator import fit_ellipse_fitzgibon
c = fit_ellipse_fitzgibon(x, y)
from ellipsinator import fast_guaranteed_ellipse_estimate
c = fast_guaranteed_ellipse_estimate(x, y)
You can also pass in the measured points as a complex number, x + 1j*y:
from ellipsinator import fit_ellipse_halir
c = fit_ellipse_halir(x)
The only function that supports fitting multiple ellipses simultaneously is fit_ellipse_halir:
assert x.shape == (num_ellipses, num_pts)
assert y.shape == (num_ellipses, num_pts)
c = fit_ellipse_halir(x, y)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ellipsinator-0.2.0.tar.gz
(15.2 kB
view details)
Built Distribution
File details
Details for the file ellipsinator-0.2.0.tar.gz
.
File metadata
- Download URL: ellipsinator-0.2.0.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2fd81030efd81dcbfbc9ffe9b3e1a8fcd43f4fbab7fda9e9032a231ac6f0a13 |
|
MD5 | b47fd3234b63d49e11327f2ec9acdbc7 |
|
BLAKE2b-256 | af089e37234f752da2e015487da5677bc042c203325ec10f52761513f4c29bb0 |
File details
Details for the file ellipsinator-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: ellipsinator-0.2.0-py3-none-any.whl
- Upload date:
- Size: 33.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fae9444efbb26062e19cf598f53cca6d6fee946b16337d35c685bd3540dfce77 |
|
MD5 | 8b39cde2dc437d96d3530e90d16eb7fc |
|
BLAKE2b-256 | 04a69843e53814467be71076d10d91bce92e80ba7d325b4bd9291a07bd60aa19 |