[Insight-developers] Current limitation of ITK for writting DICOM files

Mathieu Malaterre mathieu.malaterre at kitware.com
Fri May 20 11:59:18 EDT 2005


Hello,

	I was recently contacted by Dirk Padfield (GE Research), he had 
troubles writting a series of DICOM files. In a very simple code he 
demonstrates that eventhough he has access to the input DICOM headers it 
is completely useless for writting the output serie. In his example he 
makes use of the itk::OrientImageFilter filter. So the input is let say 
256x256x3 and the output is 256x3x256. Therefore he has to generate 256 
DICOM headers from only 3 in input.

	I realize that currently ITK SeriesWriter instanciate a 2D writer in 
this case and therefore information about the 3d dimension is completely 
lost: preventing us to generate any appropriate 
orientation/spacing/positions...

	Is there any work done for dealing with this problem ? How does other 
people deal with this issue ?


	The only solution I came with was to hand-generate an array of 
MetaDataDictionary containing the Image Number. Ideally it should also 
contains Image Patient Position / Image Patient Orientation . See 
attached file where I patched Dirk's code.


Thanks
Mathieu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ResliceDICOM.cxx
Type: text/x-c++src
Size: 5170 bytes
Desc: not available
Url : http://www.itk.org/mailman/private/insight-developers/attachments/20050520/9fc6c426/ResliceDICOM.cxx


More information about the Insight-developers mailing list