MATLAB: Aren’t all of the tags showing up in the ‘info’ structure from DICOMINFO in the Image Processing Toolbox 8.0

dicomImage Processing Toolboxr2012a

I have a DICOM file with many tags that are not showing up in the output from DICOMINFO. These tags are in the DICOM Dictionary and show up in ImageJ.
What can I do?

Best Answer

The tags being looked for are buried within the Items of Sequence fields that have come before them. Here are a few lines from a sample DICOM file:
0002306 2 (0018,9325) SQ 62 bytes - CTXrayDetailsSequence
0002318 3 (FFFE,E000) UN 54 bytes - Item
0002326 4 (0018,0060) DS 2 bytes - KVP [80]
0002336 4 (0018,1160) SH 6 bytes - FilterType [SMALL ]
0002350 4 (0018,1190) DS 8 bytes - FocalSpot [0.9\0.8 ]
0002366 4 (0018,7050) CS 6 bytes - FilterMaterial [COPPER]
0002380 2 (0018,9329) SQ 84 bytes - CTImageFrameTypeSequence
0002392 3 (FFFE,E000) UN 76 bytes - Item
0002400 4 (0008,9007) CS 24 bytes - FrameType [ORIGINAL\PRIMARY\VOLUME ]
0002432 4 (0008,9205) CS 10 bytes - PixelPresentation [MONOCHROME]
0002450 4 (0008,9206) CS 6 bytes - VolumetricProperties [VOLUME]
0002464 4 (0008,9207) CS 4 bytes - VolumeBasedCalculationTechnique [NONE]
Thus KVP, FilterType, FocalSpot and FilterMaterial will all show up in the CTXrayDetailsSequence which is in Item_1 of SharedFunctionalGroupSequence. Since these are all structs, they can be referenced with dot notation. To extract KVP from above:
info = dicominfo('sample.dcm');
info.SharedFunctionalGroupsSequence.Item_1.CTXrayDetailsSequence.Item_1.KVP