[Insight-users] How to sort dicom files according to instance number?
Mathieu Malaterre
mathieu.malaterre at gmail.com
Fri Apr 24 07:51:49 EDT 2009
[top posting]
Hi Antoine,
I do not remember from the top of my head how the API is supposed to
work (all I remember is: this is counter intuitive). You have to add
more 'Restriction' on the series itself to be able to read portion of
it. I think then you have to append the volume one by one. I do not
think you can do otherwise.
Hopefully someone else has more feedback on that issue.
Good luck,
On Fri, Apr 24, 2009 at 1:35 PM, Antoine DUCHAMPS
<antoine.duchamps at gmail.com> wrote:
> Mathieu,
>
> I've been searching in the itk documentation and I've found that
> itk::DICOMSeriesFileNames provides some functions to set the image
> ordering criterium (ImageNumber, SliceLocation, ImagePosition). However
> I don't see this in itk::GDCMSeriesFileNames. So how can I specify an
> ordering according to the instance number? Do I have to modify the
> class?
>
> antoine
>
>
>
>
> Le jeudi 23 avril 2009 à 15:01 +0200, Antoine DUCHAMPS a écrit :
>> Hi Mathieu,
>>
>> gdcmtar works fine and I can recover the correct volume size (128 x 128
>> x 41) after spliting a 3D file into a set of 2D images.
>>
>> However, back to the original problem, now I obtain an image (128 x 128
>> x 2367 x 1) which is still a 3D image. Now the problen seems to be the
>> ordering of the 4th dimension as you commented previously. You had
>> proposed me to use the instance number. My question is: at which level
>> do I have to specify this? Is this a function of the ImageSeriesReader
>> or a function of the gdcmImageIO?
>>
>> thanks!
>>
>> antoine
--
Mathieu
More information about the Insight-users
mailing list