<div>Hello,</div>
<div> </div>
<div>thank's for the tip but I have already solved the problem.</div>
<div> </div>
<div>Mafalda<br><br> </div>
<div><span class="gmail_quote">On 5/30/06, <b class="gmail_sendername">Vladimir FONOV</b> <<a href="mailto:vladimir.fonov@gmail.com">vladimir.fonov@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello,<br><br>Mafalda Sousa wrote:<br><br>> I would like to know if it's possible to read .raw image files with ITK.
<br>> I've tried with RawImageIO and it didn't work.<br>> Instead of .raw files I also have MINC files. This files are Simulated<br>> Brain<br>> MR Images obtained from Brainweb <a href="http://www.bic.mni.mcgill.ca/brainweb/">
http://www.bic.mni.mcgill.ca/brainweb/</a> .<br>> I usually use real Dicom files and transform them to VTK files, but this<br>> simulated data sets would be very usefull if i could use them. I just don't<br>> know how to read them.
<br>><br><br>You can try to use MetaImageIO, you can construct an .mhd file , and<br>then read it in usual way ( using itk::ImageFileReader )<br>There is an application MetaImageImporter in InsightApplications, that<br>
will create and .mhd file for you.<br>In short, mhd file is a text file of the following format:<br><br>NDims = <number of dimensions><br>DimSize = <x size> <y size> <z size><br>ElementSpacing = <x spacing> <y spacing> <z spacing>
<br>Position = <x origin> <y origin> <z origin><br>ElementByteOrderMSB = <False if the data in PC byte order><br>ElementNumberOfChannels = <number of channels per voxel><br>ElementType = <data type: MET_UCHAR, MET_USHORT, MET_UINT MET_FLOAT
<br>MET_DOUBLE><br>ElementDataFile = <name of the RAW file><br><br>--<br>Best regards,<br>Vladimir S. Fonov ~ <a href="http://www.bic.mni.mcgill.ca/~vfonov">www.bic.mni.mcgill.ca/~vfonov</a><br><br>_______________________________________________
<br>Insight-users mailing list<br><a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br><a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br></blockquote>
</div><br>