Created
September 11, 2017 03:29
-
-
Save AReineberg/1367345a1aaef56bcc56f05a2d9506a5 to your computer and use it in GitHub Desktop.
Converts freesurfer asc file to mgh file format.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
overlay = MRIread('lh.thickness.fsaverage.mgh'); | |
asc = load('lh_thickness_data.asc'); | |
asc_reshaped = reshape(asc(:,5), overlay.volsize) | |
overlay.vol = fast_mat2vol(asc_reshaped, overlay.volsize); | |
MRIwrite(overlay, 'lh_thickness_data.mgh'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment