# read-roi
[](https://pypi.org/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.
[](https://pypi.org/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.
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.4.2.tar.gz
(6.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file read-roi-1.4.2.tar.gz.
File metadata
- Download URL: read-roi-1.4.2.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f798dddd2e4f06a518f158007e02019ce44baebccd0372f281d24db454d4846
|
|
| MD5 |
86711845bc9c6c23e95b981de670ca8e
|
|
| BLAKE2b-256 |
842eb2a52ff75feb77d6b67885afc636c98eabd1bbd094d81e1dc2e34d027b6f
|
File details
Details for the file read_roi-1.4.2-py2.py3-none-any.whl.
File metadata
- Download URL: read_roi-1.4.2-py2.py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e5a9f6ac03d37c3d1fd0dca48404fd5e0991201bd07dfbc25c55202bd17f261
|
|
| MD5 |
1ea99dc6519b6fced9e095a9c31f9e99
|
|
| BLAKE2b-256 |
38783cec30401564f239f412c74e6ce0925c555b4e09858f989b8db65695d53b
|