[Insight-users] Writting DICOM Images

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed May 18 13:00:22 EDT 2005


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