[Dcmlib] RTSTRUCT and RTPlanStorage

Jean-Pierre Roux Jean-Pierre.Roux at creatis.insa-lyon.fr
Tue Feb 28 18:07:06 CET 2006


Mathieu Malaterre wrote:

> Jean-Pierre Roux wrote:
>
>> 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]));
>>>
>>> If something like that can  be added to gdcm, it will be helpfull 
>>> for some application.
>>
>>
>>
>> OK.
>> I'll add the stuff asap.
>
>
> Don't forget to add the other ~2500 DICOM tags...


--> My suggestion was to add *one* method like :
std::vector <double> File::GetDSValue(uint16_t group,uint16_t element);
(if the user calls it on an element that's *not* DS, it returns an empty 
vector ...)





More information about the Dcmlib mailing list