Home > vbmeg > functions > default_param > vb_define_file.m

vb_define_file

PURPOSE ^

return defined filenames.

SYNOPSIS ^

function define = vb_define_file(define, vbmeg_dir)

DESCRIPTION ^

 return defined filenames.
 [usage]
    define = vb_define_file(vbmeg_dir);
 [Input]
       define : definitions made by other functions.
    vbmeg_dir : The top directory of VBMEG.
 [Output]
       define : structure added filenames definition.
 [History]
    2013-01-24 rhayashi Initial version

 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 define = vb_define_file(define, vbmeg_dir)
0002 % return defined filenames.
0003 % [usage]
0004 %    define = vb_define_file(vbmeg_dir);
0005 % [Input]
0006 %       define : definitions made by other functions.
0007 %    vbmeg_dir : The top directory of VBMEG.
0008 % [Output]
0009 %       define : structure added filenames definition.
0010 % [History]
0011 %    2013-01-24 rhayashi Initial version
0012 %
0013 % Copyright (C) 2011, ATR All Rights Reserved.
0014 % License : New BSD License(see VBMEG_LICENSE.txt)
0015 
0016 if ~exist('vbmeg_dir', 'var'), vbmeg_dir = ''; end
0017 
0018 define.FILE_MNI_ICBM152_HDR   = fullfile(vbmeg_dir, 'standard_brain/mni_icbm152_t1_tal_nlin_asym_09c.hdr');
0019 define.FILE_MNI_ICBM152_IMG   = strrep(define.FILE_MNI_ICBM152_HDR, '.hdr', '.img');
0020 define.FILE_MNI_ICBM152_BRAIN = fullfile(vbmeg_dir, 'standard_brain', 'mni_icbm152_t1_tal_nlin_asym_09c_20000', 'mni_icbm152_t1_tal_nlin_asym_09c_20000.brain.mat');
0021 define.FILE_MNI_ICBM152_AREA  = strrep(define.FILE_MNI_ICBM152_BRAIN, '.brain.mat', '.area.mat');
0022 define.FILE_MNI_ICBM152_ACT   = strrep(define.FILE_MNI_ICBM152_BRAIN, '.brain.mat', '.act.mat');
0023 
0024 define.FILE_MNI_BETMASK_HDR   = fullfile(vbmeg_dir,  'functions/tool_box/atlas2vb_dir/MNI_atlas_templates/betmask.hdr');
0025 define.FILE_MNI_BETMASK_IMG   = strrep(define.FILE_MNI_BETMASK_HDR, '.hdr', '.img');
0026 
0027 define.FILE_STD_BRAIN_MASK_MAT = fullfile(vbmeg_dir, 'functions/tool_box/atlas2vb_dir/MNI_atlas_templates/brain_mask.mat');
0028 define.FILE_STD_BRAIN_CORTEX   = fullfile(vbmeg_dir, 'functions/tool_box/atlas2vb_dir/MNI_atlas_templates/ch2_std.brain.mat');

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