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.
[![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
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.1.0.tar.gz
(5.4 kB
view details)
Built Distribution
File details
Details for the file read-roi-1.1.0.tar.gz
.
File metadata
- Download URL: read-roi-1.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74ebd9dcaa8fb22b5d7ed1d2b6a4ff445ae8614639f583b17ef7fb2b95dd022f |
|
MD5 | 93974808301b770a5c75ade4d362ff82 |
|
BLAKE2b-256 | e14773202487d5448c77a38da280d5a06a9c861cf89aede2e0a1e4e2306370d3 |
File details
Details for the file read_roi-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: read_roi-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cad8a460b1486bf93090065f54ce08dca2f01a5be11cea23b1556acee859999 |
|
MD5 | ef09104f18fc49729547dcf9185e7ec9 |
|
BLAKE2b-256 | 8fe850fdf6c22e1c5bb17bb01ced4ab96d33d0fbdbb69a82e38c034212bb376d |