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.1.0.tar.gz
(13.5 kB
view details)
Built Distribution
File details
Details for the file ellipsinator-0.1.0.tar.gz
.
File metadata
- Download URL: ellipsinator-0.1.0.tar.gz
- Upload date:
- Size: 13.5 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.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb3ef08ac55e512b9fd4b6d6740b46e282985a8e3c4a1a7c31fed3fd94dfff16 |
|
MD5 | 839ddbe7d4e8ca0af98caff184ecb384 |
|
BLAKE2b-256 | 6d6da70496881d979b358c44253551f987c7438d61ca2365bc9a9cf842acfeeb |
File details
Details for the file ellipsinator-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ellipsinator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 31.7 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.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fcb5d307954a6874ad3a3ebb919d6e020655274cd152b1d3e733b48b5d6bbc6 |
|
MD5 | d1a4a43cf6b4d7c5ce8ba2c479bf5f35 |
|
BLAKE2b-256 | 31e52933d47b180e307ee1982a5fab435f128e934c411ebc95cd33f9d3cd5681 |