Skip to content

Commit a980363

Browse files
committed
working map cifti surface to volume
1 parent 9419a1b commit a980363

3 files changed

+23
-0
lines changed
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
3+
% https://www.xquartz.org/
4+
5+
% https://surfer.nmr.mgh.harvard.edu/fswiki/rel7downloads
6+
% https://surfer.nmr.mgh.harvard.edu/fswiki//FS7_mac
7+
8+
9+
10+
% [projected, projected_seg] = CBIG_RF_projectfsaverage2Vol_single(lh_input_array, rh_input_array, interpolation, path_to_mapping, path_to_mask)
11+
12+
cifti_struct = cifti_read('transcriptomic_gradients.dscalar.nii');
13+
leftdata = cifti_struct_dense_extract_surface_data(cifti_struct, 'CORTEX_LEFT', 1);
14+
rightdata = cifti_struct_dense_extract_surface_data(cifti_struct, 'CORTEX_RIGHT', 1);
15+
leftdata = leftdata(:, 1)';
16+
rightdata = rightdata(:, 1)';
17+
18+
%%
19+
mappingfile = which('allSub_fsaverage_to_FSL_MNI152_FS4.5.0_RF_ANTs_avgMapping.prop.mat');
20+
21+
maskfile = which('FSL_MNI152_FS4.5.0_cortex_estimate.nii.gz');
22+
23+
[projected, projected_seg] = CBIG_RF_projectfsaverage2Vol_single(leftdata, rightdata, 'linear', mappingfile, maskfile); % , path_to_mapping, path_to_mask)
Binary file not shown.

0 commit comments

Comments
 (0)