[Insight-users] Dicom Series Sorting - GDCM
Karthik Krishnan
Karthik.Krishnan at kitware.com
Thu Apr 13 22:10:17 EDT 2006
On Thu, 2006-04-13 at 15:48 -0500, Uday Kurkure wrote:
> Hello all,
>
> I need help in sorting Dicom series.
>
> Description:
> In my application, user specifies the folder where dicom files are
> stored. I am using gdcmIO library to read the series. I understand
> that gdcm sorts the series according to:
> 1. Image Position (Patient) (0020,0032)
> 2. Image Number (0020,0013)
> 3. File Name
>
> In my dicom data header, image position key is blank, so I believe
> that my series is being sort according to image number.
That's a wierd DICOM file. I thought (0020,0032) is a type 1 tag. So its
absence is a violation of the standard.
> This particular aqcuisition is from feet to head. The keys 'image
> number' and 'slice location' increase from feet to head.
>
> But I want to sort them such that they are ordered from head to feet.
> Now, the quick fix is to flip the series which I don't want to do.
>
> Questions:
> 1. If user reads data acquired from different centers, how do I make
> sure that the series are always ordered from head to feet irrespective
> of acquisition order/image number etc.?
> 2. Also, how can I get all the SOP instance UIDs (ordered) and
> non-string keys from gdcm meta dictionary?
>
> Regards,
>
> -Uday
> _______________________________________________
> 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