[Insight-users] Re: Read .raw MR image file and convert to vtk

Mafalda Sousa mmvpgs at gmail.com
Wed May 31 04:34:28 EDT 2006


Hello,

thank's for the tip but I have already solved the problem.

Mafalda


On 5/30/06, Vladimir FONOV <vladimir.fonov at gmail.com> wrote:
>
> Hello,
>
> Mafalda Sousa wrote:
>
> > I would like to know if it's possible to read .raw image files with ITK.
> > I've tried with RawImageIO and it didn't work.
> > Instead of .raw files I also have MINC files. This files are Simulated
> > Brain
> > MR Images obtained from Brainweb http://www.bic.mni.mcgill.ca/brainweb/.
> > I usually use real Dicom files and transform them to VTK files, but this
> > simulated data sets would be very usefull if i could use them. I just
> don't
> > know how to read them.
> >
>
> You can try to use MetaImageIO, you can construct an .mhd file , and
> then read it in usual way ( using itk::ImageFileReader )
> There is an application MetaImageImporter in  InsightApplications, that
> will create and .mhd file for you.
> In short, mhd file is a text file of the following format:
>
> NDims = <number of dimensions>
> DimSize = <x size> <y size> <z size>
> ElementSpacing = <x spacing> <y spacing> <z spacing>
> Position = <x origin> <y origin> <z origin>
> ElementByteOrderMSB = <False if the data in PC byte order>
> ElementNumberOfChannels =  <number of channels per voxel>
> ElementType = <data type: MET_UCHAR, MET_USHORT, MET_UINT MET_FLOAT
> MET_DOUBLE>
> ElementDataFile = <name of the RAW file>
>
> --
> Best regards,
> Vladimir S. Fonov ~ www.bic.mni.mcgill.ca/~vfonov
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060531/da16a443/attachment.html


More information about the Insight-users mailing list