Python interface to libminc
Pyminc is a python interface to the MINC 2 library, allowing use of numpy arrays to access MINC data, and other such similar goodies, developed by Jason Lerch.
Documentation can be found in the tutorial section of the MINC Wikibooks (Programming with MINC2 in Python):
Pyminc is compatible with both Python 2 and Python 3. It requires numpy (the python numerical arrays package) to work; this can be installed automatically from PyPI via setuptools. Also, it needs MINC2 compiled as a shared object and accessible through the standard search paths. For the tests, you also need the minc-tools suite of command-line utilities.
Currently pyminc is geared towards the develop branch of libminc, because that is the version of MINC that is installed through the minc-toolkit (https://github.com/BIC-MNI/minc-toolkit). There are some substantial differences between that branch and the master branch of libminc in terms of the argument types of several functions.
Pyminc is installable from PyPI via setuptools, pip, etc. To install from source:
- Untar the tarball if applicable
- Run ‘python setup.py install’ with an optional –prefix if you want to install it in a non-default location.
- Test the installation. To test the installation of pyminc library, run “python setup.py test”. At your option, also run the pyminc_test2.py script in the scripts folder. This program has 3 arguments: a minc file, a method for smoothing the volume (numpy, blitz or weave) and an output file name.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pyminc-0.43.tar.gz (14.0 kB)||File type Source||Python version None||Upload date||Hashes View|