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

Jean-Pierre Roux Jean-Pierre.Roux at creatis.insa-lyon.fr
Tue Feb 28 11:56:15 CET 2006


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
)
It's always something like Image Orientation (Patient).

I'm gonna add a very simple method, like :
std::vector <double> File::GetDSValue(uint16_t group,uint16_t element);

JPRx

>
> Good luck, keep posting,
> Mathieu
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>




More information about the Dcmlib mailing list