Creating a Template Electrodes Coordinates

 

What is averaging electrodes
How to run the averaging
Results

What is averaging electrodes?

This is a utility to build an average electrodes coordinates file from a set of subjects or measurements (average is the left one):

Method

The method works this way, with the 2 first stages being the main ones:

Remarks

The method is insensitive to which file is picked first in the first stage, apart for a slight different global scaling.

The number of repetitions of the second stage is currently set to 3, as the resulting average does not evolve significantly afterward.

Only a global scaling is allowed, and not 3 different scalings for each axis. We want to average the shape of the heads, and having different factors in x, y or z does alter the original shape. Plus, it would make the whole process very dependent to which file is picked in the first stage.

How to run the averaging

Called from the Tools | Averaging Electrodes Coordinates menu, you simply have to follow these steps (no dialog for the moment):

Input files

The files to be averaged should be taken from the same source/process of measurement:

Cz / Fpz / Oz locations

See here an example for specifying Fpz, as we gave the electrodes 25 26 and 32, so to have Fpz in the middle of these 3 points:

Results

Here are the output files:

 

To help visualize, see here 3 coregistered files (blue meshes & electrodes) on top of the final average (yellow triangles):

 

Distance file

It indicates the distance of each file to the average, for each electrode (distance from the blue electrodes to the yellow ones in the figure above). The Y axis are the electrodes, and the X axis is the index of each of the original files.

Plus, there are 2 more positions in X ("files"):

 

You can of course link this distance file with the average .xyz to visualize the results, here we can see the average of electrodes distances:

Verbose file

It contains all the input parameters, the content of the distance file plus some more details.

In addition to the distance, you will find 2 more rows (in Y):

 

Error messages

The error messages you might have had at the end of the processing are also reproduced into the verbose file, so you can have a second thought on them:

The advice is to first remove the files of the first category, run again the averaging, then only remove the files of the second category, if there remain some anymore.