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
You’re currently reading “neuroimaging & python,” an entry on emissions from the polluted tube
- Published:
- November 5, 2011 / 8:18 pm
- Category:
- Uncategorized
- Tags:
No comments yet
Jump to comment form | comment rss [?] | trackback uri [?]