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.

Supported by

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