Home > vbmeg > demo > tutorial_for_vbmeg2 > advanced > correct_motion_in_dmri.m

correct_motion_in_dmri

PURPOSE ^

Correct motion in dMRI

SYNOPSIS ^

function correct_motion_in_dmri(p)

DESCRIPTION ^

 Correct motion in dMRI

 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 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);

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