Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function dmri_process_DWI_brain_mask_extract(p) 0002 % 0003 % Copyright (C) 2011, ATR All Rights Reserved. 0004 % License : New BSD License(see VBMEG_LICENSE.txt) 0005 0006 disp(mfilename); 0007 0008 dwi_file = fullfile(p.output_dir, p.dwi_dirname, [p.dwi_basename, '_m.nii.gz']); 0009 0010 % 0011 % --- Create brain mask 0012 % 0013 brain_image_extract(dwi_file, p.dmri_brain_threshold); 0014 0015 % output_root/DWI/data_dwi_m_brain.nii.gz 0016 % /data_dwi_m_brain_mask.nii.gz 0017 0018 0019 % check by fslview 0020 brain_mask_file = fullfile(p.output_dir, p.dwi_dirname, [p.dwi_basename, '_m_brain_mask.nii.gz']); 0021 cmd = ['fslview ', dwi_file, ' ', brain_mask_file]; 0022 dmri_system(cmd);