Mercurial > repos > greg > drmi
comparison dmri.py @ 36:501221517d3f draft
Uploaded
author | greg |
---|---|
date | Thu, 30 Nov 2017 10:47:25 -0500 |
parents | 013144510199 |
children | d9c4ef2ee7c6 |
comparison
equal
deleted
inserted
replaced
35:013144510199 | 36:501221517d3f |
---|---|
48 fbval = os.path.join(input_dir, 'HARDI150.bval') | 48 fbval = os.path.join(input_dir, 'HARDI150.bval') |
49 fbvec = os.path.join(input_dir, 'HARDI150.bvec') | 49 fbvec = os.path.join(input_dir, 'HARDI150.bvec') |
50 else: | 50 else: |
51 # input_dir == 'stanford_t1 | 51 # input_dir == 'stanford_t1 |
52 fetch_stanford_t1() | 52 fetch_stanford_t1() |
53 fdwi = os.path.join(input_dir, 'HARDI93.nii.gz') | 53 fdwi = os.path.join(input_dir, 't1.nii.gz') |
54 fbval = os.path.join(input_dir, 'HARDI93.bval') | 54 fbval = os.path.join(input_dir, 't1.bval') |
55 fbvec = os.path.join(input_dir, 'HARDI93.bvec') | 55 fbvec = os.path.join(input_dir, 't1.bvec') |
56 img = nibabel.load(fdwi) | 56 img = nibabel.load(fdwi) |
57 | 57 |
58 data = img.get_data() | 58 data = img.get_data() |
59 # data is a 4D array where the first 3 dimensions are the i, j, | 59 # data is a 4D array where the first 3 dimensions are the i, j, |
60 # k voxel coordinates and the last dimension is the number of | 60 # k voxel coordinates and the last dimension is the number of |