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
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)
- 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.
- Python 3.5 and above.
pip install read-roi
Or you can use Anaconda and conda-forge
:
conda config --add channels conda-forge
conda install read-roi
Under BSD license. See LICENSE.
- Hadrien Mary [email protected]
- Run tests:
pytest -v read_roi/
. - Install rever:
conda install -y rever
. - Run check:
rever check
. - Bump and release new version:
rever VERSION_NUMBER
.