[Insight-users] RE: DICOM series private tag

Kris Thielemans kris.thielemans at csc.mrc.ac.uk
Mon Feb 26 19:30:53 EST 2007


Hi
> If I 
> use "0009|10d8" instead, all the images gets in the same 
> series. If I try to print out (using a variant of
> DicomImageReadPrintTags.cxx) the "0009|10d8" value, I get:
> 
> Frame number (0009|10d8)  is: AQAAAA==
> 
> While if I try to see its value with DCMTK (dcmdump) then I 
> get the right values written as:
> 
> (0009,10d8) ?? 01\00\00\00
> 
> So, that's why I though it could be a format issue.
>

You have to add the tag to the dictionary, as gdcm doesn't know about it:

    gdcm::Global::GetDicts()->GetDict(PUB_DICT_NAME)->
      AddEntry(
#if 0
	       // line appropriate for gdcm 1.2 apparently
	       gdcm::DictEntry::New
#else
	       gdcm::DictEntry
#endif
	       ( uint16_t(0x0009),
		 uint16_t(0x10d8),
		 "SL", "1", 
		 "frame_number"));
    //  gdcm::Global::GetDicts()->GetDict(PUB_DICT_NAME)->Print();

this should work I think.
 

Kris
 




More information about the Insight-users mailing list