This macro is used for getting the Group Number out of a Tag.
Declaration:
Copy Code | |
---|---|
MED_DCM_DS_TAG_GROUP(Tag) |
Arguments:
Tag | Supply this argument with a 32-bit Tag value. |
Return Value:
Returns the 16-bit Group Number portion of a 32-bit Tag value.
Supported Raster Image Formats:
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. |
Example:
Copy Code | |
---|---|
group = MED_DCM_DS_TAG_GROUP(DCM_TAG_IssuerOfPatientID) /* group equals 0x0010 */ |
Remarks:
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.