mesh_fit_elec_optim - optimise the fitting of electrodes to scalp vertices This function is in development. It needs rotations and translations of elec vertices to fit those of the scalp vertices and a minimisation function for the difference between the vertex locations of the nearest scalp vertices and those of the electrodes.
0001 function [sumD] = mesh_fit_elec_optim(SUMD,scalp,elec) 0002 0003 % mesh_fit_elec_optim - optimise the fitting of electrodes to scalp vertices 0004 % 0005 % This function is in development. It needs rotations and 0006 % translations of elec vertices to fit those of the scalp 0007 % vertices and a minimisation function for the difference 0008 % between the vertex locations of the nearest scalp vertices 0009 % and those of the electrodes. 0010 0011 % $Revision: 1.1 $ $Date: 2004/11/12 01:32:35 $ 0012 0013 % Licence: GNU GPL, no implied or express warranties 0014 % History: 09/2002, Darren.Weber_at_radiology.ucsf.edu 0015 % 0016 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0017 0018 fprintf('Still in development\n'); return 0019 0020 0021 % Rotations/translations/scaling here??? 0022 0023 [k,d] = dsearchn(scalp,elec); 0024 0025 sumD = sum(d) - SUMD; 0026 0027 return