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.1.tar.gz
(15.3 kB
view details)
Built Distribution
File details
Details for the file ellipsinator-0.2.1.tar.gz
.
File metadata
- Download URL: ellipsinator-0.2.1.tar.gz
- Upload date:
- Size: 15.3 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 | fb98dc44ef3551f02a803a3a997b6f05457af226abc604b548d2ac7cd129b11e |
|
MD5 | 3dea1ac34312d5484f39070ff2fe8e1b |
|
BLAKE2b-256 | e4fbdc766fbf7aa54773180ca08d8aa1aa69b907d902a245518d52dbd3cf35fa |
File details
Details for the file ellipsinator-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: ellipsinator-0.2.1-py3-none-any.whl
- Upload date:
- Size: 33.6 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 | 6fefc7aee94e1247378be4fbc270ce67df0c17fa03cedd6fa9d174ed27dfacbc |
|
MD5 | 4cf6e3e2ea2bd5d1968f7fb9a527e6b2 |
|
BLAKE2b-256 | fa15c1db9b5d2d8541faecbbc72090492cbd35fffd408c3b801d7a91670d8f03 |