Read ROI files .zip or .roi generated with ImageJ.
Project description
# read-roi
[![Build Status](https://travis-ci.com/hadim/read-roi.svg?branch=master)](https://travis-ci.com/hadim/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 files should work.
- Feel free to hack it and send me modifications.
## Requirements
- Python 3.6 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>
[![Build Status](https://travis-ci.com/hadim/read-roi.svg?branch=master)](https://travis-ci.com/hadim/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 files should work.
- Feel free to hack it and send me modifications.
## Requirements
- Python 3.6 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>
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.5.1.tar.gz
(5.8 kB
view details)
File details
Details for the file read-roi-1.5.1.tar.gz
.
File metadata
- Download URL: read-roi-1.5.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c803a4017f8fe089916620396c66148f51fa83772fbf16384120f28e2957e20 |
|
MD5 | e46f687ec44a6735cd5580f444704b12 |
|
BLAKE2b-256 | ed305bb1f5860499b9b73b24a5bbb8ae84bac253157eef059fc5e90c6180a8f3 |