Read ROI files .zip or .roi generated with ImageJ.
Project description
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
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.
Authors
- Hadrien Mary hadrien.mary@gmail.com
Release a new version
- Run tests:
pytest -v read_roi/
. - Install rever:
conda install -y rever
. - Run check:
rever check
. - Bump and release new version:
rever VERSION_NUMBER
.
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.6.0.tar.gz
(7.4 kB
view details)
File details
Details for the file read-roi-1.6.0.tar.gz
.
File metadata
- Download URL: read-roi-1.6.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70aa222f348c300eead6318dc4ae3a72548bcde0ff352cca3742b527fde7565c |
|
MD5 | 7e4278d14d3e8cba20af65999dad500f |
|
BLAKE2b-256 | f4d9f59d53def03ad40c4908d231520e3080753701ee00f13bea2f884ea97ec9 |