Note that this reference documentation is identical to the help that is displayed in Matlab when you type “help ft_prepare_mesh_new”.
FT_PREPARE_MESH_NEW creates a triangulated surface mesh for the volume conduction model. The mesh can either be selected manually from raw mri data or can be generated starting from a segmented volume information stored in the mri structure. The result is a bnd structure which contains the information about all segmented surfaces related to mri and are expressed in head coordinates. Use as bnd = ft_prepare_mesh(cfg, data) Configuration options: cfg.interactive = 'no' (default) or 'yes' (manual interaction) cfg.tissue = list with segmentation values/names corresponding with each compartment cfg.numvertices = vector, length equal cfg.tissue. e.g. [2000 1000 800]; cfg.downsample = (optional) integer (1,2, ...) defines the level of refinement of the mri data cfg.headshape = a filename containing headshape, a Nx3 matrix with surface points, or a structure with a single or multiple boundaries cfg.unit = e.g. 'mm' To facilitate data-handling and distributed computing with the peer-to-peer module, this function has the following options: cfg.inputfile = ... If you specify one of these (or both) the input data will be read from a *.mat file on disk and/or the output data will be written to a *.mat file. These mat files should contain only a single variable, corresponding with the input/output structure. Example use: mri = ft_read_mri('Subject01.mri'); cfg = []; cfg.output = {'scalp', 'skull', 'brain'}; cfg.numvertices = [2000 1000 800]; bnd = ft_prepare_mesh(cfg, segment);
Share this page: