Array Key Name | Variable Type | Description |
---|---|---|
tag | STRING | A 1-dimensional array containing the DICOM tags |
description | STRING | A 1-dimensional array containing the DICOM tag descriptions |
value | STRING | A 1-dimensional array containing the DICOM tag values |
(0002,0000) Group Length UL 1
(0002,0001) File Meta Information Version OB 1
note | The input text file can contain either part or all of the tag descriptions which are from the DICOM image associative array. |
rw_dir = GETENV('RW_DIR')
dicm_file = rw_dir + '/image-2_0/data/pvwave.dicm'
dicm_desc_file = rw_dir + '/image-2_0/data/pvwave_des1.txt'
image = IMAGE_READ(dicm_file, File_type='dicm')
tags = DICM_TAG_INFO(dicm_desc_file, image)
INFO, tags, /Full
; PV-WAVE prints the following:
; TAGS AS. ARR = Associative Array(3)
; tag STRING = Array(14)
; description STRING = Array(14)
; value STRING = Array(14)
FOR i= 0L,13 DO PRINT, (tags('tag'))(i), ' ', (tags('value'))(i)
; PV-WAVE prints the following:
; (0008,0016) 1.2.840.10008.5.1.4.1.1.7
; (0008,0018) 1.2.124.113532.1.1.1
; (0008,0064) WSD
; (0020,000D) 072495.0449
; (0020,000E) REMSAMPLES1
; (0028,0002) 1
; (0028,0004) MONOCHROME2
; (0028,0010) 256
; (0028,0011) 256
; (0028,0100) 8
; (0028,0101) 8
; (0028,0102) 7
; (0028,0103) 0
; (7FE0,0010) 32768 * 2 bytes at offset 339 (0x0153) in pvwave.dicm
; (has |little endian|str_size_2|implicit_hint|)
rw_dir = GETENV('RW_DIR')
dicm_file = rw_dir + '/image-2_0/data/pvwave.dicm'
dicm_desc_file = rw_dir + '/image-2_0/data/pvwave_des2.txt'
image = IMAGE_READ(dicm_file, File_type='dicm')
tags = DICM_TAG_INFO(dicm_desc_file, image)
INFO, tags, /Full
; PV-WAVE prints the following:
; TAGS AS. ARR = Associative Array(3)
; tag STRING = Array(8)
; description STRING = Array(8)
; value STRING = Array(8)
FOR i=0L,7 DO PRINT, (tags('tag'))(i), ' ', (tags('value'))(i)
; PV-WAVE prints the following:
; (0028,0002) 1
; (0028,0004) MONOCHROME2
; (0028,0010) 256
; (0028,0011) 256
; (0028,0100) 8
; (0028,0101) 8
; (0028,0102) 7
; (0028,0103) 0