Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

dicomlookup

Find attribute in DICOM data dictionary

Syntax

name = dicomlookup(group, element)
[group, element] = dicomlookup(name)

Description

name = dicomlookup(group, element) looks into the current DICOM data dictionary for the attribute with the specified group and element tag and returns a character vector containing the name of the attribute. group and element can contain either a decimal value or hexadecimal value.

[group, element] = dicomlookup(name) looks into the current DICOM data dictionary for the attribute specified byname and returns the group and element tags associated with the attribute. The values are returned as decimal values.

Examples

Find the names of DICOM attributes using their tags.

name1 = dicomlookup('7FE0', '0010')
name2 = dicomlookup(40, 4)

Look up a DICOM attribute's tag (GROUP and ELEMENT) using its name.

[group, element] = dicomlookup('TransferSyntaxUID')

Examine the metadata of a DICOM file. This returns the same value even if the data dictionary changes.

metadata = dicominfo('CT-MONO2-16-ankle.dcm');
metadata.(dicomlookup('0028', '0004'))

Introduced in R2006b

Was this topic helpful?