[Dcmlib] RTSTRUCT and RTPlanStorage

Vincent Daanen vincent.daanen at imag.fr
Tue Feb 28 17:37:08 CET 2006


hi

Mathieu, "ne ferais-tu pas un peu de mauvais esprit la ?" ;-)

The code below just allows to get all the numerical values from a DS 
into a std::vector, regarding of the (group, element). I'm not a guru of 
the dicom file format but I guess DS is
often use and so, a small method which allows to get the n values of a 
DS ( n from 3 to ... 200-300 ?) would be, imho, very useful.

I'm quite sure that in applications that handle dicom files (not only 
dicom images), there is a method that parses DS into std::vector so why 
do not add it in gdcm ?

... and ... you will be be able to read, let's say, ~ 1000 others tags :-P

 Vince

Mathieu Malaterre a écrit :
> 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...
>


-- 
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