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.
[![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
Release history Release notifications | RSS feed
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.0.tar.gz
(6.2 kB
view details)
Built Distribution
File details
Details for the file read-roi-1.3.0.tar.gz
.
File metadata
- Download URL: read-roi-1.3.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 596c5273e372f37e43a0bff0fbc0d06c2a884258911334d72378df8e9bccf4ca |
|
MD5 | 99967f6ccb8753bf53c023a4b4ab57f1 |
|
BLAKE2b-256 | 13b6998b6bc4008a628721077d404f12a357168045f09fe4e0dcd9a6ca80ba26 |
File details
Details for the file read_roi-1.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: read_roi-1.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8ce631520fec39d3f6c16e862f4b0c7afbe8364c5dc9183abd560f3cbc9b718 |
|
MD5 | b865437511c1ca453b673449a64c5050 |
|
BLAKE2b-256 | 7d72435dff904977522fb2aef09483eccf31b28158ea22b271772acade908244 |