<div dir="ltr">If you own MATLAB, you could use the C-callable API to parse the mat file and access the data inside.<br>See for example the C function matOpen:<br><a href="http://www.mathworks.com/access/helpdesk/help/techdoc/apiref/matopen.html">http://www.mathworks.com/access/helpdesk/help/techdoc/apiref/matopen.html</a><br>
<br>In this approach, you would need to write code to read the data from MATLAB's mxArray and write it to an itk::Image.<br><br>- Aviv<br><br><br><div class="gmail_quote">On Fri, Oct 3, 2008 at 6:16 PM, Jean-Pierre Roux <span dir="ltr"><<a href="mailto:jpr@creatis.insa-lyon.fr">jpr@creatis.insa-lyon.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thiebaut Mochel wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Could this be useful : <a href="http://matitk.cs.sfu.ca/" target="_blank">http://matitk.cs.sfu.ca/</a> ?<br>
</blockquote>
I read about matitk before.<br>
It's used to extend matlab with itk, right?<br>
It must be great for matlab users ... but I'm not one of them : I never used matlab (and I don't plan to do), I was given matlab file, and I would like to process them with my C++ applications.<br>
I was wonder if it it exist something like 'vtkMatlabRader' (or i'tkMaltab...'), or any C/C++ piece of code that fopens a .mat file, freads it, fseeks what it feels like, and bring into main memory the values the file contains.<br>
<br>
Thx for your help, anyway.<br>
<br>
Jean-Pierre<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Jean-Pierre Roux wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Hi,<br>
<br>
I have tons on .mat Matlab(R) files and I would like to read them, with VTK, or ITK, or with a C++ program.<br>
I wouldn't like too much to have to convert them into Dicom files (under Matlab), or to write a raw file, and add (under vi) a .mhd...<br>
<br>
Any suggestion?<br>
<br>
Thx a lot.<br>
<br>
Jean-Pierre Roux<br>
_______________________________________________<br></div>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
<br>
</blockquote>
<br>
</blockquote><div><div></div><div class="Wj3C7c">
_______________________________________________<br>
Insight-users mailing list<br>
<a href="mailto:Insight-users@itk.org" target="_blank">Insight-users@itk.org</a><br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br></div>