Home > functions > estimation > bayes > vb_leadfield_preparation.m

vb_leadfield_preparation

PURPOSE ^

Prepare leadfield

SYNOPSIS ^

function [G, ix, ix_ext, W, L] = vb_leadfield_preparation(lf_parm)

DESCRIPTION ^

 Prepare leadfield 

 --- Syntax
 [G, ix, ix_ext, W, L] = vb_leadfield_preparation(lf_parm)

 --- Input
 lf_parm.brainfile
 lf_parm.areafile
 lf_parm.basisfile
 lf_parm.patch_norm
 lf_parm.reduce
 lf_parm.Rfilt
 lf_parm.area_key
 lf_parm.expand_spatial_filter
 lf_parm.remove_area_key

 --- Output
 G     : leadfield matrix
 L     : current component number  %% Added by M. Sato 2008-7-4
 W     : spatial smoothing matrix
 ix    : vertex indices
 ix_ext: vertex indices of expandend area

 --- History
 2008-06-26 Taku Yoshioka
 2009-09-08 Taku Yoshioka (comment modified)

 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 [G, ix, ix_ext, W, L] = vb_leadfield_preparation(lf_parm)
0002 % Prepare leadfield
0003 %
0004 % --- Syntax
0005 % [G, ix, ix_ext, W, L] = vb_leadfield_preparation(lf_parm)
0006 %
0007 % --- Input
0008 % lf_parm.brainfile
0009 % lf_parm.areafile
0010 % lf_parm.basisfile
0011 % lf_parm.patch_norm
0012 % lf_parm.reduce
0013 % lf_parm.Rfilt
0014 % lf_parm.area_key
0015 % lf_parm.expand_spatial_filter
0016 % lf_parm.remove_area_key
0017 %
0018 % --- Output
0019 % G     : leadfield matrix
0020 % L     : current component number  %% Added by M. Sato 2008-7-4
0021 % W     : spatial smoothing matrix
0022 % ix    : vertex indices
0023 % ix_ext: vertex indices of expandend area
0024 %
0025 % --- History
0026 % 2008-06-26 Taku Yoshioka
0027 % 2009-09-08 Taku Yoshioka (comment modified)
0028 %
0029 % Copyright (C) 2011, ATR All Rights Reserved.
0030 % License : New BSD License(see VBMEG_LICENSE.txt)
0031 
0032 % fields of 'lf_parm' used in this function
0033 vb_struct2vars(lf_parm,{'basisfile','area_key','reduce','Rfilt',...
0034                     'brainfile','areafile','expand_spatial_filter',...
0035                     'patch_norm','remove_area_key'});
0036 
0037 % Leadfield matrix
0038 [G, L, W, ix, ix_ext] ...
0039     = vb_prepare_leadfield(basisfile, brainfile, areafile, area_key, ...
0040                         reduce, Rfilt, expand_spatial_filter, ...
0041                         patch_norm, remove_area_key);

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005