The purpose of this page is just to serve as todo or scratch pad for the development project and to list and share some ideas.
After making changes to the code and/or documentation, this page should remain on the wiki as a reminder of what was done and how it was done. However, there is no guarantee that this page is updated in the end to reflect the final state of the project
So chances are that this page is considerably outdated and irrelevant. The notes here might not reflect the current state of the code, and you should not use this as serious documentation.
Dealing with the geometry of the forward model
This part overviews the available routines (and not yet availiable too!) to get an optimal description of the head geometry in order to build a forwaard model.
The functions’ types available at the moment deal with different types of object
- anatomies: from MRI or CT scans (for example). They are volumetric matrices
- segmentations: they are volumetric binary masks of tissue compartments
- surfaces: triangulations (faces and nodes) of anatomical surfaces. Normally from anatomies or segmentations
- meshes: they are 3D meshes (nodes and elements) describing a wireframe structure. Used in FEM, FDM methods can be tetrahedrons, hexahedrons (cubes) or others
head models: a structure containing the necessary information to run a forward model algorithm (geometry+conductivity+others)
- The from (rows)-to (columns) matri
|^ ana ^ seg ^ surf ^ mesh ^ hdm|
From hdm TO seg ft_prepare_sourcemodel Back
From hdm TO surf headmodel Back
From seg TO hdm ft_headmodel_fdm_fns, used only for the available FDM method Back
From seg TO surf bounding_mesh
Idea for a further improvement: Use as: ft_datatype(gris,’datatype’,’seg’) where grid comes from the ft_prepare_sourcemodel function. This generates a surface outside a delimiting filled volume.
From surf TO hdm all ft_headmodel_XXX functions Back
From mesh TO hdm ft_headmodel_fem_simbio, used only for the available FEM method Back
From mesh TO surf TBD Useful for example to extract a surface from the wireframe Implementation suggestion of mesh2surf.m: for each triangle of the tetrahedron count the number of belonging tetrahedres end keep the triangles with count == 1 Back
From mesh TO seg TBD Useful for example to calculate if source points ly in or out of a wireframe element Back
From mesh TO mesh TBD Useful to reposition the elements elastically Back
From seg TO surf ft_surfaceextract Back
From ana TO ana spm_smooth or ft_volume_realign Back
From ana TO seg ft_volumesegment Back
From seg TO seg All morphological operators, e.g. imopen Back
From seg TO mesh Builds a mesh directly from the segmentation, like in vgrid software Back
From surf TO surf Manipulates surfaces: all ft_surfaceXXX functions Back
From surf TO mesh Tetge software, interfaced by the external toolbox iso2mesh Back
From ? TO ? TBD Back