[Insight-users] Convert raw image to dicom using itk
Karthik Krishnan
Karthik.Krishnan at kitware.com
Wed Jul 6 16:14:29 EDT 2005
The header that you are describing is a MetaImage header. See
http://www.itk.org/Wiki/ITK_File_Formats for a lis of supported file
formates in ITK. You should be able to read the file rightaway in ITK,
provided the header file has an extension: ".mhd".
To write it as a Dicom file, you will need to use a series writer to
write aseries of 2D slices. There are several examples in Examples/IO/
See for instance....
DicomSeriesReadImageWrite2.cxx
Thanks
regards
karthik
junhui wang wrote:
>Hi,
>
>Can anybody tell me how to convert raw image to dicom
>using itk? The header file for the raw image like the
>following:
>
>ObjectType = Image
>NDims = 3
>BinaryData = True
>BinaryDataByteOrderMSB = False
>Offset = 0 0 0
>ElementSpacing = 0.0976562 -0.0976562 0.25
>DimSize = 512 512 21
>ElementType = MET_FLOAT
>ElementDataFile = test1.raw
>
>I haven't found a piece of code in itk examples for
>converting. I will appreciate it if you can help me.
>
>Thanks in advance.
>
>Albert
>
>
>
>__________________________________
>Yahoo! Mail for Mobile
>Take Yahoo! Mail with you! Check email on your mobile phone.
>http://mobile.yahoo.com/learn/mail
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk.org
>http://www.itk.org/mailman/listinfo/insight-users
>
>
>
More information about the Insight-users
mailing list