[Insight-developers] diccom private tag advice

Richard Beare richard.beare at gmail.com
Tue Jun 9 23:36:40 EDT 2009


Hi,

I'm struggling with reading private tags using itk/gdcm 2.0.11. The
tags are displayed by gdcmdump - e.g.

(0051,0010) LO [SIEMENS MR HEADER ]                               #
18,1 Private Creator
(0051,1008) CS [IMAGE NUM 4 ]                                     #
12,1 CSA Image Header Type
(0051,1009) LO [1.0 ]                                             #
4,1 CSA Image Header Version ??
(0051,100a) LO (SH) [TA 00.23]                                    # 8,1 ?
(0051,100b) LO (SH) [144*256 ]                                    #
8,1 AcquisitionMatrixText
(0051,100c) LO (SH) [FoV 318*340 ]                                # 12,1 ?
(0051,100d) SH [SP H21.8]                                         # 8,1 ?
(0051,100e) LO (SH) [Tra>Cor(39.4)>Sag(-25.9)]                    # 24,1 ?
(0051,100f) LO [T:BO1,2;SP1-3 ]                                   #
14,1 CoilString
(0051,1011) LO [p2]                                               #
2,1 PATModeText
(0051,1012) SH [TP 0]                                             # 4,1 ?
(0051,1013) SH [+LPH]                                             #
4,1 PositivePCSDirections
(0051,1016) LO [p2 M/DIS2D]                                       # 10,1 ?
(0051,1017) SH [SL 8.0]                                           # 6,1 ?
(0051,1018) SH [CT]                                               # 2,1 ?
(0051,1019) LO [A1]                                               # 2,1 ?


DicomImageReadPrintTags does not display these tags. My code, derived
from this is failing too. I thought the issues may relate to casting
to strings, but the tags don't appear to be in the dictionary at all,
since the call to Find is failing.

I have the following enabled

  dicomIO->LoadPrivateTagsOn();
  dicomIO->LoadSequencesOn();
  dicomIO->SetMaxSizeLoadEntry(0xffff);


as per examples and so on. Should this work? What am I missing?

Thanks


More information about the Insight-developers mailing list