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

- Modify version number in `read_roi/__init__.py`
- Commit and push changes
- Make Github release
- Create packages : `python setup.py sdist bdist_wheel`
- Upload packages : `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.2.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

read_roi-1.2.0-py2.py3-none-any.whl (6.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for read-roi-1.2.0.tar.gz
Algorithm Hash digest
SHA256 a3082cfda375db4f83e5c1f9169089dbb2339f4824fe1c1ce3624c5b7fc97b89
MD5 8604fa09da4f869f08e24b906bc208de
BLAKE2b-256 ab737ed3677d953f4182dbb8f4cd20401fa433e7f19a371c64e79392b71e900e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for read_roi-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b6b3ac786ddd9915d4d3af78684fb06ef67c663d15b06f557f219bdcab7e2cad
MD5 cd6bd13acbb0c4f10b6e548665079c20
BLAKE2b-256 f0227b4110c5b2ed4e9f507cb3997630d22fada13105af8f7b64b747417cd98e

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