neuroimaging & python

download the 32bit epd python install from

www.enthought.com/products/epd.php

then at command line

easy_install nibabel

then in a new shell do:

ipython notebook –pylab=inline

and start a new notebook

then try typing a latex equation by switching to doc mode ( type ctl m m ) and then type (verbatim) $t=\int_0^1 dt$

then try :

from time import localtime
# record how long this takes
print localtime()
import numpy as np
import scipy.ndimage as ndimage
import nibabel as nib
import matplotlib as mpl
from scipy import *
ion()

path_to_images=’/Users/stnava/code/ipython/’
img1 = nib.load(path_to_images+’img1.nii.gz’)

imshow(smooth_image[:,:]>220)


About this entry