<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> <!--@import url(scrollbar.css); --></STYLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE> BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em} body{FONT-SIZE:12.1pt; COLOR:#001; FONT-FAMILY:宋体,serif;} </STYLE>
<META name=GENERATOR content="MSHTML 8.00.7601.18751"><BASE
target=_blank></HEAD>
<BODY
style="LINE-HEIGHT: 1.3; BORDER-RIGHT-WIDTH: 0px; MARGIN: 12px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px"
marginheight="0" marginwidth="0"><STATIONERY>
<DIV><FONT color=#000000 size=4 face=宋体>Hi Experts,
</FONT></DIV>
<DIV> </DIV>
<DIV>I got a set of MEG. The anatomical MRI was stored in .mri format (CTF
device) and MEG was stored in a folder named by xxx.ds. </DIV>
<DIV>I do not know how to do segmentation of .mri into scalp,skull and cortex.
So I try to convert .mri into .mgz or other format so </DIV>
<DIV>that it can be used in freesurfer for reconstruction. </DIV>
<DIV>I used the following command.</DIV>
<DIV> </DIV>
<DIV>x=ft_read_mri('MEG619.mri','dataformat','ctf_mri4');<BR>y=ft_write_mri('ddd',x,'dataformat','mgz',
'transform',x.transform)</DIV>
<DIV> </DIV>
<DIV>the error was </DIV>
<DIV> </DIV>
<DIV>>> y=ft_write_mri('ddd',x,'dataformat','mgz',
'transform',x.transform)<BR>Error using fwrite<BR>Cannot write value:
unsupported class struct</DIV>
<DIV> </DIV>
<DIV>Error in save_mgh (line 107)<BR>fwrite(fid,vol,'float32');</DIV>
<DIV> </DIV>
<DIV>Error in ft_write_mri (line 79)<BR> save_mgh(dat,
filename, transform);</DIV>
<DIV> </DIV>
<DIV>I failed to do it. </DIV>
<DIV>1. Anyone know what happens ?</DIV>
<DIV>2. Freesurfer can use .mri directly to reconstruct ?</DIV>
<DIV>3. Are there other methods to convert .mri into .mgz or .dicom
format?</DIV>
<DIV> </DIV>
<DIV>Best wishes, </DIV>
<DIV>J. Zhang </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV align=left><FONT color=#c0c0c0 size=2
face=Verdana>2015-04-12</FONT></DIV><FONT size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" id=SignNameHR align=left SIZE=2>
</FONT>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN
id=_FlashSignName>thismoment</SPAN></FONT></DIV></STATIONERY></BODY></HTML>