Skip to main content

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)

Fitting multiple ellipses simultaneously is also possible with fit_ellipse_halir and fast_guaranteed_ellipse_estimate:

assert x.shape == (num_ellipses, num_pts)
assert y.shape == (num_ellipses, num_pts)
c1 = fit_ellipse_halir(x, y)
c2 = fast_guaranteed_ellipse_estimate(x, y)
assert c1.shape == (num_ellipses, 6)
assert c2.shape == (num_ellipses, 6)

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.3.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

ellipsinator-0.3.0-py2.py3-none-any.whl (26.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ellipsinator-0.3.0.tar.gz.

File metadata

  • Download URL: ellipsinator-0.3.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for ellipsinator-0.3.0.tar.gz
Algorithm Hash digest
SHA256 134bb932e0d34df5dd95192eed3c68c4690d1b30ecd51a49a7d15d8a147cc2a6
MD5 ac471f08d49ca529bfc074cd1f822131
BLAKE2b-256 a5358015241c15970aac8d16242dae15a74fa116679d5b606e36a6c211b7c431

See more details on using hashes here.

File details

Details for the file ellipsinator-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ellipsinator-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ad49e2635b15b8bd521562c8bfb9ce1da5f24b508a8e2c91c96398321e23a68f
MD5 92b864835176f83ac4c7ed862f3b9c44
BLAKE2b-256 5e57283ffc6fdb244a5c8ab571211046cb80246f763fe378c062a9904a1fbb32

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page