Skip to main content

Read ROI files .zip or .roi generated with ImageJ.

Project description

# read-roi

[![PyPI version](https://img.shields.io/pypi/v/read-roi.svg?maxAge=2591000)](https://pypi-hypernode.com/project/read-roi/)

Read ROI files .zip or .roi generated with ImageJ. Code is largely inspired from : http://rsb.info.nih.gov/ij/developer/source/ij/io/RoiDecoder.java.html

## Functions

```python
from read_roi import read_roi_file
from read_roi import read_roi_zip

roi = read_roi_file(roi_file_path)

# or

rois = read_roi_zip(roi_zip_path)
```

## Note

- Some format specifications are not implemented. See RoiDecoder.java for details.
- Most of "normal" ROI file should work.
- Feel free to hack it and send me modifications.

## Requirements

- Python 3.4 and above

## Install

`pip install read-roi`

Or you can use Anaconda and `conda-forge` :

```
conda config --add channels conda-forge
conda install read-roi
```

## License

Under BSD license. See [LICENSE](LICENSE).

## Authors

- Hadrien Mary <hadrien.mary@gmail.com>

## How to release a new version

- Run `python release.py`
- Create and upload packages : `python setup.py sdist bdist_wheel && twine upload dist/*`
- Update `conda-forge` recipe.



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

read-roi-1.3.2.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

read_roi-1.3.2-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file read-roi-1.3.2.tar.gz.

File metadata

  • Download URL: read-roi-1.3.2.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for read-roi-1.3.2.tar.gz
Algorithm Hash digest
SHA256 1a87bccca9ea389ff35a4af126203826e59f63148efe8b68e91d1993f3d4867c
MD5 d523907150afdf1cf702bd5773f5f4fe
BLAKE2b-256 3261b4dd9729ef1378d92e6469dfd3d0ed830e91a7c6bf4ed1c3dcbf3f73b50d

See more details on using hashes here.

File details

Details for the file read_roi-1.3.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for read_roi-1.3.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f51cf402c22bc9474f17258b7b0b7848c556382b8081521304155a8d6e508b4a
MD5 d1cf70fa5ecfb35ea46d7edf92089571
BLAKE2b-256 bfa526bf08635656227eebc2badbddf14de7be40466d9121ef5907aa202b76cb

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