Skip to main content

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)

Metadata

Release files for ellipsinator 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ellipsinator 0.3.0
File Size Uploaded
ellipsinator-0.3.0.tar.gz 19.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ellipsinator 0.3.0
File Interpreter ABI Platform
ellipsinator-0.3.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 46.3 kB

Release files / ellipsinator-0.3.0.tar.gz

Download URL ellipsinator-0.3.0.tar.gz
Size 19.9 kB
Tags Source
SHA-256 checksum
How to use checksums
134bb932e0d34df5dd95192eed3c68c4690d1b30ecd51a49a7d15d8a147cc2a6
BLAKE2b-256 checksum
How to use checksums
a5358015241c15970aac8d16242dae15a74fa116679d5b606e36a6c211b7c431
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / ellipsinator-0.3.0-py2.py3-none-any.whl

Download URL ellipsinator-0.3.0-py2.py3-none-any.whl
Size 26.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ad49e2635b15b8bd521562c8bfb9ce1da5f24b508a8e2c91c96398321e23a68f
BLAKE2b-256 checksum
How to use checksums
5e57283ffc6fdb244a5c8ab571211046cb80246f763fe378c062a9904a1fbb32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page