ctf_write_headshape

ctf_write_headshape - function...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: function ctf_write_headshape(HeadShape,mri,file) % ctf_write_headshape - write a CTF .shape file % % ctf_write_headshape(HeadShape,mri,file) % % - HeadShape is Nx3 list of coordinates in the CTF head shape coordinates. % - mri is a struct returned by ctf_read_mri; if it is empty, this function % will prompt with a file browser and read in the file identified. The mri % struct contains the mri.file field, which is used to define the name of % the .shape and the .shape_info output files (unless the optional 'file' % input is given). Also, the fiducials and other information in this % struct are required to output the .shape_info file. The .shape and % .shape_info files are required to import the data into CTF's MRIViewer. % % The *.shape file is an ascii text file in the following format: % % Number of Points % x1 y1 z1 % x2 y2 z2 % . % . % . % xn yn zn % % These vertex coordinates are contained in the input HeadShape % matrix (Nx3). The coordinate values must be in centimeters in % either the voxel MRI coordinate system or the MEG Head Coordinate % System (see ctf_read_mri for more about the coordinate system). % % This function assumes the MEG head coordinate system is required. % The values in the input HeadShape matrix (Nx3) should be in % centimeteres, with the column values representing X, Y, Z, such % that +X is toward the nasion, +Y is left preauricular and +Z is % superior. The values are given with respect to the origin, which % lies half way between the left and right preauricular fiducials. % lies half way between the left and right preauricular fiducials....
View Full Document

  • Spring '10
  • ThomasHolland
  • Computer file, Implied warranty, GNU General Public License, Free Software Foundation, Coordinate system

{[ snackBarMessage ]}

Page1 / 4

ctf_write_headshape - function...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online