PyUNC is a Python module for reading the UNC MRI image format it is also able to convert UNC format images to NIFTI format.
from pyunc import UNCFile
unc = UNCFile.from_path('filename.unc')
# get the image title
unc.title
# get the image data as a numpy matrix
unc.pixels
git clone https://github.com/jstutters/pyunc
cd pyunc
pip install .
pyunc is tested with Python v2.7 and 3.6. The module will install arrow, numpy and nibabel as dependencies.
- Issue Tracker: github.com/jstutters/pyunc/issues
- Source Code: github.com/jstutters/pyunc
If you are having problems, please let me know by submitting an issue in the tracker.