[Insight-developers] GDCM eventually replacing DICOMImageIO2

Mathieu Malaterre mathieu.malaterre at kitware.com
Fri Nov 19 16:44:35 EST 2004


> For one, the GDCMSeriesFilenames does not seem to handle mutiple series in a
> directory.This is a common occurrence. The API of DICOMSeriesFilenames to
> handle this is easy to use.

That's definitely one thing on my TODO list. It shouldn't take me long 
to implement it, once I know the choices:

- How do I order when there is a mixture of DICOM serie and DICOM study
- What should I do when both serie/study have the same number
- What is considerer to be the first serie when there are multiple 
series ? Is  it determine by the first DICOM image read...


> Also, in DICOMSeriesFileNames, the sorting of the files can be ascending or
> descending. This may or not be a useful feature.

Well, I am not convinced this is usefull and could maybe conduct people 
into error.

What's done currently in GDCMSeries is a strategy approach:

- We read all of our images, then try to order following:

1. What I called /Jolinda's/ algorithm, we extract image position, we do 
some math to determine vector normal of 2D plane, and then order accordingly

2. If 1) fail (no image position...) we order using 'Image Number' this 
is a DICOM tag

3. If 2) fail, we do by filenames, hopefully the files are order properly.

For me this make much more sense, since we don't want people starting to 
work on a 3D image 'inside out'. Or worse, since DICOM does not define 
filename convention (see e-film convention), slices could be 
interchanged, putting slices at the wrong place.


Mathieu




More information about the Insight-developers mailing list