[FieldTrip] Fwd: interpolation

shlomit beker shlomitbeker at gmail.com
Sun Mar 1 11:38:04 CET 2015


Hi Fieldtrippers,

We would like to use the ft_channelrepair(cfg, data) function.
However we don't understand how to load or convert the electrode positions
into FieldTrip.

We tried FT_READ_SENS and we looked in FT_DATATYPE_SENS, however there are
two positions variables described in this structure:

The structure for EEG or ECoG channels contains
     sens.label    = Mx1 cell-array with channel labels
     sens.chanpos  = Mx3 matrix with channel positions
     sens.tra      = MxN matrix to combine electrodes into channels
     sens.elecpos  = Nx3 matrix with electrode positions

what do the third field mean? what is the difference between the second and
the fourth?


our format is the attached.

Thanks a lot!

Omer and Shlomit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150301/35c33eb0/attachment.html>
-------------- next part --------------
Name,X,Y,Z
Nas,10.761088,100.987892,90.000000
Fid1,8.695332,115.625073,176.681312
Fid2,8.695332,115.625073,3.318688
E1,9.068730,103.978420,37.707197
E2,9.114712,90.880337,44.644806
E3,9.361927,78.971692,51.666010
E4,9.843311,68.234033,58.246154
E5,9.968636,56.448903,64.170813
E6,9.762819,44.501384,70.779258
E7,9.736243,33.341175,77.164587
E8,9.461169,22.339155,90.000000
E9,9.393823,11.688124,127.306400
E10,9.596665,99.083916,51.181915
E11,9.799699,87.625858,58.772025
E12,10.150354,75.650698,66.764771
E13,10.329451,64.842882,73.805812
E14,10.204397,53.557241,81.358250
E15,9.971271,43.089788,90.000000
E16,9.736243,33.341175,102.835413
E17,9.327410,23.433595,128.232998
E18,10.285052,94.969684,66.627057
E19,10.451891,85.323609,74.020032
E20,10.554640,74.345445,81.959600
E21,10.493970,63.646916,90.000000
E22,10.204397,53.557241,98.641750
E23,9.762819,44.501384,109.220742
E24,9.460075,35.802015,127.184539
E25,10.761203,93.256919,82.537006
E26,10.737137,84.626981,90.000000
E27,10.554640,74.345445,98.040400
E28,10.329451,64.842882,106.194188
E29,9.968636,56.448903,115.829187
E30,9.542844,48.782128,128.803911
E31,10.761088,100.987892,90.000000
E32,10.761203,93.256919,97.462994
E33,10.451891,85.323609,105.979968
E34,10.150354,75.650698,113.235229
E35,9.843311,68.234033,121.753846
E36,9.489548,59.767036,128.506861
E37,10.285052,94.969684,113.372943
E38,9.799699,87.625858,121.227975
E39,9.361927,78.971692,128.333990
E40,9.289732,69.218001,135.265515
E41,9.174187,58.028484,140.607176
E42,9.110028,46.015012,144.545390
E43,9.194459,35.248893,151.004325
E44,9.245175,23.565055,163.150912
E45,9.519999,12.655780,-162.995385
E46,9.596665,99.083916,128.818085
E47,9.114712,90.880337,135.355194
E48,8.888349,81.541526,142.505900
E49,8.766982,70.553645,149.196493
E50,8.937092,57.757292,155.268609
E51,8.948103,45.798798,162.376857
E52,9.201641,35.533103,173.549301
E53,9.429451,24.404072,-162.897520
E54,9.068730,103.978420,142.292803
E55,8.544581,94.102449,149.140746
E56,8.407718,82.866049,156.727661
E57,8.448040,70.514560,163.198903
E58,8.789435,58.413164,169.661560
E59,9.158021,47.049896,179.486799
E60,9.362286,37.036840,-163.384897
E61,8.516790,107.206103,157.957711
E62,8.080266,95.733921,165.130055
E63,8.118717,83.114481,171.384465
E64,8.543094,70.969564,177.153328
E65,8.908092,58.914546,-175.727138
E66,9.241572,50.079575,-164.070749
E67,8.927417,117.929963,167.252636
E68,8.197103,107.541586,172.257951
E69,7.996945,96.966345,179.478854
E70,8.068305,84.010193,-174.621726
E71,8.652928,71.346909,-169.436606
E72,9.004535,61.451643,-163.008828
E73,9.628421,128.245098,174.452905
E74,8.036446,96.625147,-166.664055
E75,8.330712,82.410129,-160.681967
E76,8.754403,70.242276,-154.914699
E77,9.248635,58.051265,-151.084656
E78,9.448291,46.355151,-145.769307
E79,9.636802,34.372686,-139.298073
E80,9.664407,22.564014,-127.091178
E81,9.655237,11.581130,-90.000000
E82,10.250036,135.807463,-176.052657
E83,8.452797,104.970004,-154.643174
E84,8.398554,93.510940,-153.804656
E85,8.697863,79.951488,-146.625956
E86,8.986969,67.266726,-141.514246
E87,9.523079,54.708062,-135.357926
E88,9.662776,43.194025,-127.629054
E89,9.873964,33.093355,-115.196067
E90,9.772684,22.513364,-90.000000
E91,11.209512,140.858593,-164.724066
E92,9.953439,132.677283,-157.091965
E93,9.345515,122.472442,-149.362984
E94,9.048487,113.092378,-147.673636
E95,8.809199,102.376386,-144.333841
E96,8.802170,89.333825,-139.329298
E97,9.076291,77.056949,-132.433685
E98,9.328702,65.143177,-127.120079
E99,9.510178,53.647360,-119.332693
E100,9.737640,43.061469,-108.855494
E101,9.974535,45.796457,-90.000000
E102,11.070044,137.842245,-149.017953
E103,10.126681,129.903495,-143.484820
E104,9.515842,119.452381,-137.378714
E105,9.308613,110.495171,-136.400673
E106,9.127194,98.843252,-131.569691
E107,9.220070,87.101247,-124.662235
E108,9.482746,75.436770,-117.873771
E109,9.736341,64.313078,-111.689838
E110,9.683126,53.985361,-102.774215
E111,11.202016,133.765789,-134.159266
E112,10.424872,126.267465,-129.861499
E113,9.908772,115.854503,-124.751714
E114,9.581553,107.460011,-125.232011
E115,9.611033,96.242245,-115.653419
E116,9.693262,85.154510,-108.929065
E117,9.794087,74.475751,-101.894590
E118,9.732708,64.838287,-97.128130
E119,9.695185,56.572691,-90.000000
E120,11.444011,131.143470,-123.097866
E121,10.622781,123.374443,-118.289050
E122,10.164092,113.435521,-112.856727
E123,10.118012,101.166200,-107.755713
E124,9.976019,93.664171,-102.775604
E125,9.816153,84.418877,-95.974152
E126,9.576882,74.578215,-90.000000
E127,9.732708,64.838287,-82.871870
E128,9.683126,53.985361,-77.225785
E129,9.737640,43.061469,-71.144506
E130,9.873964,33.093355,-64.803933
E131,9.664407,22.564014,-52.908822
E132,9.519999,12.655780,-17.004615
E133,11.491151,126.446312,-111.956693
E134,10.874564,120.711204,-106.883216
E135,10.366114,109.439090,-101.998030
E136,9.920603,102.874904,-95.451838
E137,9.626237,95.282718,-90.000000
E138,9.816153,84.418877,-84.025848
E139,9.794087,74.475751,-78.105410
E140,9.736341,64.313078,-68.310162
E141,9.510178,53.647360,-60.667307
E142,9.662776,43.194025,-52.370946
E143,9.636802,34.372686,-40.701927
E144,9.429451,24.404072,-17.102480
E145,11.610060,125.845626,-101.556299
E146,11.034271,119.617688,-96.350943
E147,10.232012,112.054734,-90.000000
E148,9.920603,102.874904,-84.548162
E149,9.976019,93.664171,-77.224396
E150,9.693262,85.154510,-71.070935
E151,9.482746,75.436770,-62.126229
E152,9.328702,65.143177,-52.879921
E153,9.523079,54.708062,-44.642074
E154,9.448291,46.355151,-34.230693
E155,9.362286,37.036840,-16.615103
E156,11.034271,119.617688,-83.649057
E157,10.366114,109.439090,-78.001970
E158,10.118012,101.166200,-72.244287
E159,9.611033,96.242245,-64.346581
E160,9.220070,87.101247,-55.337765
E161,9.076291,77.056949,-47.566315
E162,8.986969,67.266726,-38.485754
E163,9.248635,58.051265,-28.915344
E164,9.241572,50.079575,-15.929251
E165,11.610060,125.845626,-78.443701
E166,10.874564,120.711204,-73.116784
E167,10.164092,113.435521,-67.143273
E168,9.581553,107.460011,-54.767989
E169,9.127194,98.843252,-48.430309
E170,8.802170,89.333825,-40.670702
E171,8.697863,79.951488,-33.374044
E172,8.754403,70.242276,-25.085301
E173,9.004535,61.451643,-16.991172
E174,11.491151,126.446312,-68.043307
E175,10.622781,123.374443,-61.710950
E176,9.908772,115.854503,-55.248286
E177,9.308613,110.495171,-43.599327
E178,8.809199,102.376386,-35.666159
E179,8.398554,93.510940,-26.195344
E180,8.330712,82.410129,-19.318033
E181,8.652928,71.346909,-10.563394
E182,8.908092,58.914546,-4.272862
E183,9.158021,47.049896,0.513201
E184,9.201641,35.533103,6.450699
E185,9.245175,23.565055,16.849088
E186,9.393823,11.688124,52.693600
E187,11.444011,131.143470,-56.902134
E188,10.424872,126.267465,-50.138501
E189,9.515842,119.452381,-42.621286
E190,9.048487,113.092378,-32.326364
E191,8.452797,104.970004,-25.356826
E192,8.036446,96.625147,-13.335945
E193,8.068305,84.010193,-5.378274
E194,8.543094,70.969564,2.846672
E195,8.789435,58.413164,10.338440
E196,8.948103,45.798798,17.623143
E197,9.194459,35.248893,28.995675
E198,9.327410,23.433595,51.767002
E199,11.202016,133.765789,-45.840734
E200,10.126681,129.903495,-36.515180
E201,9.345515,122.472442,-30.637016
E202,7.996945,96.966345,0.521146
E203,8.118717,83.114481,8.615535
E204,8.448040,70.514560,16.801097
E205,8.937092,57.757292,24.731391
E206,9.110028,46.015012,35.454610
E207,9.460075,35.802015,52.815461
E208,11.070044,137.842245,-30.982047
E209,9.953439,132.677283,-22.908035
E210,8.197103,107.541586,7.742049
E211,8.080266,95.733921,14.869945
E212,8.407718,82.866049,23.272339
E213,8.766982,70.553645,30.803507
E214,9.174187,58.028484,39.392824
E215,9.542844,48.782128,51.196089
E216,11.209512,140.858593,-15.275934
E217,10.250036,135.807463,-3.947343
E218,9.628421,128.245098,5.547095
E219,8.927417,117.929963,12.747364
E220,8.516790,107.206103,22.042289
E221,8.544581,94.102449,30.859254
E222,8.888349,81.541526,37.494100
E223,9.289732,69.218001,44.734485
E224,9.489548,59.767036,51.493139
E225,9.386988,117.986216,23.067153
E226,9.914260,118.773022,33.537707
E227,10.138285,128.200139,18.488186
E228,10.859314,136.288567,10.421742
E229,11.436798,143.127527,-1.181902
E230,10.740471,122.891301,41.625351
E231,10.810450,129.588582,29.865612
E232,11.618695,136.605959,23.606353
E233,12.188049,143.300385,13.229683
E234,11.391064,125.084251,50.830892
E235,11.610218,131.264058,40.265246
E236,12.186819,137.818542,34.408687
E237,12.749106,144.638185,26.892952
E238,11.649067,125.608531,60.306669
E239,12.241244,134.962899,47.841310
E240,12.715155,140.516322,41.625035
E241,11.649067,125.608531,119.693331
E242,12.241244,134.962899,132.158690
E243,12.715155,140.516322,138.374965
E244,11.391064,125.084251,129.169108
E245,11.610218,131.264058,139.734754
E246,12.186819,137.818542,145.591313
E247,12.749106,144.638185,153.107048
E248,10.740471,122.891301,138.374649
E249,10.810450,129.588582,150.134388
E250,11.618695,136.605959,156.393647
E251,12.188049,143.300385,166.770317
E252,9.914260,118.773022,146.462293
E253,9.386988,117.986216,156.932847
E254,10.138285,128.200139,161.511814
E255,10.859314,136.288567,169.578258
E256,11.436798,143.127527,-178.818098
E257,9.683080,0.000000,0.000000


More information about the fieldtrip mailing list