<div dir="ltr">Dear fieldtrippers,<div><br></div><div>I am writing you after encountering an error using the OPENMEEG method for creating a head model, which I need for source reconstruction of EEG data (using 19 electrodes), e.g.:</div>
<div><div> ...</div><div><div> triangles 5018 and 5129 are intersecting </div><div> triangles 5305 and 5781 are intersecting </div><div> triangles 5879 and 5907 are intersecting </div></div><div> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! </div>
<div> !!!!!!!!!!! WARNING !!!!!!!!!!! </div><div> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</div><div> Mesh is self intersecting ! </div></div><div> ...</div><div> 2 meshes are intersecting !<br></div><div>
<br></div><div>It seems to be the same problem reported by Olivia about two years ago:<br></div><div><a href="http://mailman.science.ru.nl/pipermail/fieldtrip/2012-March/004881.html">http://mailman.science.ru.nl/pipermail/fieldtrip/2012-March/004881.html</a><br>
</div><div><br></div><div>In what follows I will describe the main steps in my script:</div><div><br></div><div>1) I create a segmented 'brain','skull','scalp' mri structure of the subject:</div><div>
cfg.output = {'brain','skull','scalp'};</div><div> [bss_segmentedmri] = ft_volumesegment(cfg, mri);</div><div><br></div><div>2) I try using ft_sourceanalysis</div><div><br></div><div>3) which in turn tries to compute the leadfield using ft_compute_leadfield through ft_leadfield_openmeeg.</div>
<div><br></div><div>yes this doesn't work, and I get the following error:</div><div><div> Error using fprintf</div><div> Invalid file identifier. Use fopen to generate a valid file identifier.</div><div> <br>
</div><div> Error in ft_leadfield_openmeeg (line 112)</div><div> fprintf(fid,'%s\t%.15f\t%.15f\t%.15f\n', sens.label{ii}, sens.chanpos(ii,:));</div></div><div><br></div><div><br></div><div>Since it is crucial that I use a realistic head model, do you have any suggestions?</div>
<div><br></div><div>Any advice would be greatly appreciated!</div><div>Thank you, and have a nice week,</div><div><br></div><div>roey</div></div>