Get information about DICOM unique identifier
returns information about the DICOM unique identifier contained in
details = images.dicom.decodeUID(
details contains the name and
type of the UID. If
uid corresponds to a transfer syntax, then
details also contains the endianness and the DICOM value
representation (VR) necessary for reading the image pixels, and information about
images.dicom.decodeUID function can interpret IDs defined
in the PS 3.6-1999 specification, with some additions from PS 3.6-2009.
Decode DICOM UID
Read metadata from a DICOM file and extract a UID field.
info = dicominfo("CT-MONO2-16-ankle.dcm"); uid = info.SOPClassUID;
Decode the UID.
uid_info = images.dicom.decodeUID(uid)
uid_info = struct with fields: Value: '1.2.840.10008.5.1.4.1.1.7' Name: 'Secondary Capture Image Storage' Type: 'SOP Class'
uid — DICOM unique identifier
character vector | string scalar
DICOM unique identifier, specified as a string or character vector.
details — Information from UID
Information from UID, returned as a structure with these fields:
Value of the UID, returned as a character
Name of the UID, returned as a character vector.
Type of the UID, returned as a character vector.
For transfer syntaxes, the structure contains these additional fields:
|Compression, returned as a logical
|Endianness, returned as |
|Pixel endianness, returned as
|Value representation (VR), returned as
|Compression type is lossy, returned as a logical
|Compression type, returned as a character vector.|
Introduced in R2017b