Skip to main content

Reads ImageJ ROIs.

Project description

ijroi Build Status Coverage Status PyPI page MIT license

Reads ImageJ ROIs into numpy arrays. Use it like:

>>> import ijroi
>>> with open("my_roi.roi", "rb") as f:
...     roi = ijroi.read_roi(f)
...
>>> isinstance(roi, np.ndarray)
True

read_roi returns a Nx2 array, where each row is a (row, column) or (y, x) pair.

Based on Luis Pedro Coelho’s readroi.py gist.

License

ijroi is offered under the MIT license.

Contributors

ijroi is maintained by Tim D. Smith. The core functionality was implemented by Luis Pedro Coelho.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ijroi, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size ijroi-0.4.0-py2.py3-none-any.whl (10.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size ijroi-0.4.0.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page