Mri Tools

This viewer is done is matplotlib http://matplotlib.sourceforge.net/. While a bit on the slow side, it gets the jobs done for coregistration and viewing mri.
Requires the 'Nifti' module http://niftilib.sourceforge.net/pynifti/.

Note: REQUIRES MRI TO BE ORIENT 0. This means dimension1=Right to Left, dim2= Posterior to Anterior, dim3= Inferior to Superior

from mri import img, viewmri
from numpy import flipud
mri=img.read('/home/danc/python/data/standardmri/ch2b.img')
viewmri.display(mri)

This is an interactive pylab based display of the mri. Click anywhere in any of the 3 series, and the 2 other views will redisplay to match that position.

mriview.png
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License