Purpose: Read a header file from a DICOM image.
Format: DICOMREAD filename
Notes: This statement will place the tag information into the specified variable. If specifying a text tag, use a text variable (preceded by $) to store ASCII data. Use a numeric variable to store numeric data. The DICOMREAD statement reads the header information from an image file other than the current viewer image. If this statement is not executed prior to a DICOMTAG statement then the current viewer image header is used.
Example:
getfile $dcmfile “Select a Dicom file”
dicomread $dcmfile
dicomtag $patname 0x00100010
pause “Patient Name:
“ $patname
dicomtag a 0x00201041
pause “Slice Location:
“ a
exit
See Also: DICOMTAG