[Insight-users] Problem with dicom series

Mathieu Malaterre mathieu.malaterre at kitware.com
Mon Feb 21 12:46:15 EST 2005


Arun,

	By default an example will show you what arguments it accept. For instance:

$ ./bin/DicomSeriesReadImageWrite 
 
        Usage: ./bin/DicomSeriesReadImageWrite DicomDirectory 
outputFileName  [seriesName]

Let say you want only serie: 
2.16.840.1.113664.3.9.0.20040605.111532214.10962


All you need to do is:

$ DicomSeriesReadImageWrite ./images/dicom_series/9491/ dicomImage.mhd 
2.16.840.1.113664.3.9.0.20040605.111532214.10962


Also you could modify this example to loop over fileNames and print the 
name that are being passed to the ReaderType.

HTH
Mathieu

Arun Kulshreshtha wrote:
> hi,
> 
> I have all my files in a folder and that was given as a input to the 
> DicomSeriesReadImageWrite module of ITK.The folder contain files names 
> from 9491350 to 9491803 and there is no file missing in between.
> 
> $ DicomSeriesReadImageWrite ./images/dicom_series/9491/ dicomImage.mhd
> The directory:
> 
> ./images/dicom_series/9491/
> 
> Contains the following DICOM Series:
> 
> 2.16.840.1.113664.3.9.0.20040605.111532214.10962
> 2.16.840.1.113664.3.9.0.20040605.113012807.14047
> 
> 
> Now reading series:
> 
> 2.16.840.1.113664.3.9.0.20040605.111532214.10962
> 
> 
> Writing the image as
> 
> dicomImage.mhd
> 
> ------------------------------
> 
> How do I manually know which files constitute which series.
> 
> Regards
> Arun Kulshreshtha
> 
> _______________________________________________
> 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