[Dcmlib] Is there a function that parses DS in gdcm ?

Vincent Daanen vincent.daanen at imag.fr
Tue Feb 28 14:35:51 CET 2006


Jean-Pierre Roux a écrit :
> Mathieu Malaterre wrote:
>
>> Vincent Daanen wrote:
>>
>>> Hi all,
>>>
>>> I must read a RTDOSE file and have to parse a DS to get the 
>>> informations.
>>> Since this seems to be something that happens often when reading 
>>> dicom fioles, is there a function (or a method in a class) that 
>>> parses DS in a double * or a std::vector <double> or anything else ?
>>
>>
>> Hi Vincent,
>>
>>     You are reaching the limits of gdcm, unfortunately. I still 
>> believe that you can read those, but expect some pain :).
>>     There is one hidden `feature` that prevent people from loading 
>> long binary stream, so don't be suprised if after loading you DICOM 
>> DS you cannot see the RTDOSE Tag. Have a look at
>> SetMaxSizeLoadEntry for more info. There is a thin layer exposed in 
>> ITK for that. I still believe that in the end you should do what you 
>> want because I know that people are reading 0029-1010 properly, so as 
>> long as you know which field to load you should be fine.
>
>
> --> Mathieu.
> I just finished readind your answer to Vincent.
> I guess you were thinking about an other problem (huge binary fields) ...
> DS  (for Decimal String) are never very long .
> (just
> PrintFile dirin=gdcmData | grep DS
> )
Yes, you're right JP, DS are not 'very long' but can be just 'long' : in 
the RTDOSE file I'm reading, it's about 2500 chars.
>
> I'm gonna add a very simple method, like :
> std::vector <double> File::GetDSValue(uint16_t group,uint16_t element);
>
Yes, I think it will be helpfull ; see my previous post.

 V
> JPRx

 

-- 
Vincent Daanen, PhD
Research Engineer, Post-Doctoral Position
Laboratoire TIMC/IMAG (Univ. Joseph Fourier - CNRS UMR 5525)
Equipe GMCAO
Institut d'Ingénierie de l'Information de Santé (IN3S)
Faculté de Médecine - 38706 La Tronche cedex - France
Tel: +33 (0)4 56 52 00 54 - Fax: +33 (0)4 56 52 00 55
Vincent.Daanen at imag.fr

"Les problèmes ne peuvent être résolus par
ceux dont l'horizon se limite aux réalités 
quotidiennes, mais par ceux qui rêvent de 
choses qui n'ont jamais existées et qui se 
disent : Pourquoi Pas ?"

J-F Kennedy, 1963.




More information about the Dcmlib mailing list