Home > vbmeg > functions > tool_box > dmri_processor > functions > process > dmri_process_DWI_motion_correct.m

dmri_process_DWI_motion_correct

PURPOSE ^

SYNOPSIS ^

function dmri_process_DWI_motion_correct(p)

DESCRIPTION ^

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function dmri_process_DWI_motion_correct(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 %
0009 % --- Apply motion collection to Diffusion Weighted Image.
0010 %
0011 dwi_file = fullfile(p.output_dir, p.dwi_dirname, [p.dwi_basename, '.nii.gz']);
0012 
0013 dmri_4D_image_correct(dwi_file);
0014 % Create files (output basename = input basename + '_m')
0015 %         output_dir/data_dwi_m.nii.gz
0016 %         output_dir/data_dwi_m.bvec
0017 %         output_dir/data_dwi_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);

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005