Hi.
I am not sure if it's a bug with brainstorm or brain2mesh.
After trying to compute FEM using brain2mesh, i get the following error:
'
** Error: Line 22: ones
** CLASSNAME argument must be a class that supports ONES, such as 'double' or 'single'.
**
** Call stack:
** >fillholes3d.m at 22
** >brain2mesh.m at 153
** >process_fem_mesh.m>Compute at 727
** >process_fem_mesh.m>ComputeInteractive at 1531
** >process_fem_mesh.m at 31
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@process_fem_mesh,'ComputeInteractive',iSubject,iAnatomy) at 3172
**
'
if i put a breakpoint in fillholes3d.m at line 22:
resimg = imclose(img, strel(ones(maxgap, maxgap, maxgap)));
then maxgap is 'holes' instead of a number as required by the function ones.
@FangQ, tagging you in case its an issue with brain2mesh
Edit; it seems also that dowloading iso2mesh from the plugin system is missing the function volgrow, that is on GitHub: iso2mesh/volgrow.m at master · fangq/iso2mesh · GitHub
but not downloaded via the zip archive. Called by brain2mesh here: brain2mesh/brain2mesh.m at master · fangq/brain2mesh · GitHub
Edouard