File Formats - Headshape
Description
Head shape files contain digitized head shape
information. The data are represented as a matrix, where rows represent
points, and columns represent the head frame Cartesian coordinate
representation of the points (x y z).Comments
A line beginning with '//' is a comment line, and will be ignored.
However, comment lines may not be inserted after the matrix header.
Header
The header consists of 3 entries in mandatory sequence and one optional
entry, as shown in Table A-1.
|
Name |
Format |
Description |
|
Name |
%N%s |
replace %s with name string (8 or fewer characters) |
|
Shape code |
%x |
replace %x with 0 |
|
#of digitized points |
%d |
number of sensors or channels (1 gradiometer or 1 electrode = 1
channel) |
Table A-1
Fiducial points
The fiducial point section is optional. They are required for MRI
registration. They must be in the obligatory order : nasion, left
preauricular point, right preauricular point. Table A-2 defines the format
for representing fiduciary points.
|
Name |
Format |
Description |
|
location |
%F %g %g %g |
replace %g %g %g with the point location (meters) |
Table A-2
Data
The data section
contains the digitized head surface points.
The first line of
the data section contains the number of rows (points) and the number of
columns (three).
Subsequent lines
represent the data as a matrix, where rows represent points, and columns
represent (%f %f %f) = (x y z) coordinates in meters.
Return to File Formats page
|