[Insight-users] Writting DICOM Images

Rodolfo Palacios rpalacios75 at hotmail.com
Wed May 18 14:11:55 EDT 2005


Mathieu:

It crossed my mind to switch to a new version of ITK. The problem is that 
this work is part of my Master's Degree thesis, and I have to finish it by 
the end of this month and I still have some writting to do. So an ITK 
version change may not be a nice move at this point. I'm going to keep on 
trying to get this to work.

Do you have any idea why this information is missing from the header in the 
images i'm generating?

>From: Mathieu Malaterre <mathieu.malaterre at kitware.com>
>To: Rodolfo Palacios <rpalacios75 at hotmail.com>
>CC: insight-users at itk.org
>Subject: Re: [Insight-users] Writting DICOM Images
>Date: Wed, 18 May 2005 13:00:22 -0400
>
>Rodolfo,
>
>	This is kind of old. By any chance do you have the opportunity to switch 
>to ITK CVS ? Or else wait for ITK 2.2 ?
>
>	I believe with some patience you should be able to patch ITK 2.0 to add 
>the missing fields from the DICOM header. But keep in mind that gdcm 0.6 
>has some missing functionality compare to gdcm 1.0 (which is currently in 
>ITK CVS).
>
>HTH
>Mathieu
>
>Rodolfo Palacios wrote:
>>Mathieu:
>>
>>I'm using ITK Version 2.0.0. The revision at the top of itkGDCMImageIO.cxx 
>>is:
>>
>>  Date:      $Date: 2005/01/21 22:18:52 $
>>  Version:   $Revision: 1.54 $
>>
>>Thank you
>>Rodolfo Palacios.
>>
>>>From: Mathieu Malaterre <>
>>>To: Rodolfo Palacios <rpalacios75 at hotmail.com>
>>>CC: insight-users at itk.org
>>>Subject: Re: [Insight-users] Writting DICOM Images
>>>Date: Wed, 18 May 2005 11:42:31 -0400
>>>
>>>Rodolfo,
>>>
>>>     Ok this is really a problem. Your DICOM file does not even have 
>>>dimensions. But this is clearly specify in itkGDCMImageIO(*)
>>>
>>>     Could you tell me which ITK version are you using. In particular the 
>>>revision at the top of file itkGDCMImageIO.cxx
>>>
>>>                    ...
>>>                    Version:   $Revision: 1.74 $
>>>                     ...
>>>
>>>Thanks
>>>Mathieu
>>>(*)
>>>   // Handle the dimension of image:
>>>   itksys_ios::ostringstream str;
>>>   str << m_Dimensions[0];
>>>   header->InsertValEntry( str.str(), 0x0028,0x0011); // Columns
>>>
>>>   str.str("");
>>>   str << m_Dimensions[1];
>>>   header->InsertValEntry( str.str(), 0x0028,0x0010); // Rows
>>>
>>>   if(m_Dimensions[2]>1)
>>>   {
>>>      str.str("");
>>>      str << m_Dimensions[2];
>>>      //header->Insert(str.str(),0x0028,0x0012); // Planes
>>>      header->InsertValEntry(str.str(),0x0028,0x0008); // Number of 
>>>Frames
>>>   }
>>>
>>>
>>>
>>
>>
>>
>




More information about the Insight-users mailing list