ImageGear Professional v18.2 > API Reference Guide > MD Component API Reference > MD Component Macros Reference > MED_DCM_DS_TAG_GROUP |
This macro is used for getting the Group Number out of a Tag.
Copy Code
|
|
---|---|
MED_DCM_DS_TAG_GROUP(Tag) |
Tag | Supply this argument with a 32-bit Tag value. |
Returns the 16-bit Group Number portion of a 32-bit Tag value.
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
|
|
---|---|
group = MED_DCM_DS_TAG_GROUP(DCM_TAG_IssuerOfPatientID) /* group equals 0x0010 */ |
Supply it with a 32-bit Tag value, and it will return the 16-bit Group Number value. The Group Number is the most significant WORD of the 32-bit Tag value.