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

Mathieu Malaterre mathieu.malaterre at kitware.com
Tue Feb 28 17:22:55 CET 2006


Vincent Daanen wrote:
> Hi JP and Matthieu,
> 
> finally, the solution is really easy and is something like :
>    gdcm::DataEntry *entry = MyGdcmFile->GetDataEntry(group, element);
>    int nbValues = entry->GetCountValue();
>    std::vector <double> valueVector;
>    for (int loop=0;loop<nbValues ; loop++)
>       valueVector.push_back(double(entry->GetValue()[loop]));

Oh OK ! For some reason I thought you were talking about the waveform. 
But yes if the field is so small, why do you want a specific accessor. I 
believe this comes up every now and then, and my personal feeling is 
that this is NOT the right solution to add a method for every single 
DICOM tag (the dict is huge!!).
The current mechanism looks flexible enough (thanks Benoit!), so maybe 
it's rather documentation on how to do that that was missing.

Anyway this is my 2 cents.


> If something like that can  be added to gdcm, it will be helpfull for 
> some application.
> 
> Regarding the RTDOSE file, I will anonymize it and send it to you on 
> your email account at Creatis asap.
> As much as I saw, a RTDOSE file seems to be a multiframe image.

Thanks !

> I have also RTSTRUCT and RTPlanStorage but I guess these files may be a 
> beat specific to our application.

If PrintFile works that's basically all we need to know.

Thanks
Mathieu



More information about the Dcmlib mailing list