Correct motion in dMRI Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function correct_motion_in_dmri(p) 0002 % Correct motion in dMRI 0003 % 0004 % Copyright (C) 2011, ATR All Rights Reserved. 0005 % License : New BSD License(see VBMEG_LICENSE.txt) 0006 0007 disp(mfilename); 0008 0009 % Set input file 0010 dwi_file = fullfile(p.proj_root, p.dmri_dirname, p.dmri_dirname, [p.dmri_basename, '.nii.gz']); 0011 0012 % Correct motion in dMRI 0013 dmri_4D_image_correct(dwi_file); 0014 % Create files (output basename = input basename + '_m') 0015 % output_dir/data_dmri_m.nii.gz 0016 % output_dir/data_dmri_m.bvec 0017 % output_dir/data_dmri_m.bval 0018 0019 % check by fslview 0020 dwi_m_file = strrep(dwi_file, '.nii.gz', '_m.nii.gz'); 0021 0022 cmd = ['fslview ' dwi_m_file]; 0023 dmri_system(cmd);