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

dmri_process_T1_bias_correct

PURPOSE ^

Apply bias correction to T1 image.

SYNOPSIS ^

function dmri_process_T1_bias_correct(p)

DESCRIPTION ^

 Apply bias correction to T1 image.
 Bias corrected image filename is 'm' + original T1 image.
 [Usage]
    dmri_process_analyze_bias_correct(p);
 [Input]
    p : dmri process parameter
     .output_dir          : output directory.
     .t1_dirname          : T1 data directory name.
     .t1_file             : T1 filename.

 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_T1_bias_correct(p)
0002 % Apply bias correction to T1 image.
0003 % Bias corrected image filename is 'm' + original T1 image.
0004 % [Usage]
0005 %    dmri_process_analyze_bias_correct(p);
0006 % [Input]
0007 %    p : dmri process parameter
0008 %     .output_dir          : output directory.
0009 %     .t1_dirname          : T1 data directory name.
0010 %     .t1_file             : T1 filename.
0011 %
0012 % Copyright (C) 2011, ATR All Rights Reserved.
0013 % License : New BSD License(see VBMEG_LICENSE.txt)
0014 
0015 disp(mfilename);
0016 
0017 %
0018 % --- Previous check
0019 %
0020 if isfield(p, 'ref_mri_file') && ~isempty(p.ref_mri_file)
0021     warning('Bias correction for T1-image step is skipped because p.ref_mri_file is specified.');
0022     return;
0023 end
0024 
0025 %
0026 % --- Apply Bias correction to T1 image.
0027 %
0028 mri_file = fullfile(p.output_dir, p.t1_dirname, p.t1_file);
0029 vb_bias_correction_by_spm(mri_file);

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