Supported DICOM metadata types

Hello,

Are DICOM metadata values of all types supported in ITK?

I’d retrieve metadata value of any type from a DICOM image, given an arbitrary DICOM tag. All examples I see in documentation are for string metadata, so wondering if other types (e.g., integers, arrays, etc.) are supported.

Thanks,
–Fijoy

If I remember correctly, all tags can be accessed. But: binary tags are encoded using Base64 scheme, and private tags are not loaded by default - you have to explicitly request them.

Thank you Dženan. So, the call GetMetaDataObjectValue() always returns a string, regardless of the DICOM tag type (please correct me if I’m wrong).

Does ITK provide routines to convert the base64 string back to the original binary data?

GDCM (part of ITK) does. Also see this and this.