This macro takes a 16-bit Group Number and a 16-bit Element Number and returns a 32-bit Tag value.
Copy Code
|
|
---|---|
MED_DCM_DS_TAG_MAKE(gn, en); |
gn | Supply this with a valid DICOM Group Number. |
en | Supply this with a valid DICOM Element Number. |
Returns the 32-bit Tag value from the 16-bit Group Number and 16-bit Element Number that you provide.
This function does not process image pixels.
The image must have a DICOM DataSet attached to it. Use MED_DCM_DS_exists to check whether the image contains a DataSet.
Copy Code
|
|
---|---|
AT_DCM_TAG Tag; Tag = MED_DCM_DS_TAG_MAKE(0x0010, 0x0021) /* Tag equals DCM_TAG_IssuerOfPatientID or 0x00100021 */
|
The returned Tag is compatible with the enumIGMedTag enumeration.