Home > vbmeg > 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
 lf_parm.spatial_smoother

 --- 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)
 2017-03-16 rhayashi      added spatial_smoother 

 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 % lf_parm.spatial_smoother
0018 %
0019 % --- Output
0020 % G     : leadfield matrix
0021 % L     : current component number  %% Added by M. Sato 2008-7-4
0022 % W     : spatial smoothing matrix
0023 % ix    : vertex indices
0024 % ix_ext: vertex indices of expandend area
0025 %
0026 % --- History
0027 % 2008-06-26 Taku Yoshioka
0028 % 2009-09-08 Taku Yoshioka (comment modified)
0029 % 2017-03-16 rhayashi      added spatial_smoother
0030 %
0031 % Copyright (C) 2011, ATR All Rights Reserved.
0032 % License : New BSD License(see VBMEG_LICENSE.txt)
0033 
0034 % fields of 'lf_parm' used in this function
0035 vb_struct2vars(lf_parm,{'basisfile','area_key','reduce','Rfilt',...
0036                     'brainfile','areafile','expand_spatial_filter',...
0037                     'patch_norm','remove_area_key','spatial_smoother'});
0038 
0039 % Leadfield matrix
0040 [G, L, W, ix, ix_ext] ...
0041     = vb_prepare_leadfield(basisfile, brainfile, areafile, area_key, ...
0042                         reduce, Rfilt, expand_spatial_filter, ...
0043                         patch_norm, remove_area_key, spatial_smoother);

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