https://github.com/hadim/read-roi
Read ROI files .zip or .roi generated with ImageJ.
https://github.com/hadim/read-roi
Last synced: 3 months ago
JSON representation
Read ROI files .zip or .roi generated with ImageJ.
- Host: GitHub
- URL: https://github.com/hadim/read-roi
- Owner: hadim
- License: bsd-3-clause
- Created: 2016-11-29T13:50:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-06-01T16:03:09.000Z (about 4 years ago)
- Last Synced: 2025-04-11T00:34:32.894Z (about 1 year ago)
- Language: Python
- Size: 70.3 KB
- Stars: 53
- Watchers: 6
- Forks: 21
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# read-roi
[](https://pypi.org/project/read-roi/)
[](https://travis-ci.com/hadim/read-roi)
[](https://codecov.io/gh/hadim/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 files should work.
- Feel free to hack it and send me modifications.
## Requirements
- Python 3.5 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
## Release a new version
- Run tests: `pytest -v read_roi/`.
- Install [rever](https://regro.github.io/rever-docs): `conda install -y rever`.
- Run check: `rever check`.
- Bump and release new version: `rever VERSION_NUMBER`.