[Insight-users] Convert .raw files to .img or .dcm format
Rosario Sance
rsance at die.upm.es
Thu May 5 04:52:29 EDT 2005
Hi Albert,
I send you the replies I received from Luis and Yan. As you can see, it´s
very easy to convert the images because the only code you need is in the
examples of ITK. Maybe you need a further applicattion, but then I guess
that I can´t help you.
The example you use depends on the format you want to convert to, and the
only thing you have to do is execute the example giving like output file,
for example, ...\outputfile\TestImage.img.
I´m afraid that I don´t explain myself very well, but let me know if it
works...
Regards,
Rosario
At 16:52 01/05/2005, Luis Ibanez wrote:
>Rosario,
>
>
>You will find examples on how to convert back and forth between
>different image file formats in the directory:
>
>
> Insight/Examples/IO
>
>
>You can certainly convert images between DICOM, Analyze and MetaImage
>among many other formats.
>
>For a full list of the image file formats supported in ITK, please
>refer to the FAQ
>
>http://www.itk.org/Wiki/ITK_FAQ
>
>In particular to:
>http://www.itk.org/Wiki/ITK_FAQ#What_3D_file_formats_can_ITK_import_and_export.3F
>
>
>
> Regards,
>
>
>
> Luis
>
>
>-----------------
>Yan Pingkun wrote:
>
>>Hi Rosario,
>>This can be done very easily with ITK. You just need to read the .mha
>>file and name the output file with extension .img. ITK will do the
>>conversion for you.
>>Pingkun
>>On 29-Apr-05, at PM 06:08, Rosario Sance wrote:
>>
>>>Hi everybody,
>>>
>>>I have been working with some .raw images, and with the associated .mha
>>>files. I found no problems to run the examples, and the results are successful.
>>>But now, I need to convert those original files to another format, like
>>>Analyze Image (.img) or Dicom Image (.dcm), and I have found a lot of
>>>converters from .dcm to .raw, but never in the opposite way.
>>>Could somebody give me any suggestion? Is there in ITK any function to
>>>convert format files?
>>>
>>>Thanks a lot in advance,
>>>
>>>Rosario
>>>
>>>
>>>
>>>_______________________________________________
>>>Insight-users mailing list
>>>Insight-users at itk.org
>>>http://www.itk.org/mailman/listinfo/insight-users
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk.org
>>http://www.itk.org/mailman/listinfo/insight-users
At 16:50 04/05/2005, you wrote:
>Hi Rosario:
>
>Can you share some code of how to convert .raw file to
>,img or dicom file?
>
>Thanks.
>
>Albert
>...snip...
>__________________________________________________
>Do You Yahoo!?
>Tired of spam? Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com
More information about the Insight-users
mailing list