

the key “rescaleIntercept”/“rescaleSlope”, or with their corresponding DICOM key rescaleIntercept/Slope are given as custom metadata attributes with e.g.
#Itk metaimage code#
mhd image can include custom tags that are read into ITK’s MetaDataDictionary for the ImageIOBase and then later handled by the application, perfectly fine (even though the current code for metaIO reading seems to ignore all user tags that are written below the ElementDataFile line in the mhd.

series_description = entryValue->GetMetaDataObjectValue().MetaDataStringType::Pointer entryValue =.//check presence of the metadata and use it if found.If you want to explicitly handle it, take a look at this code fragment: DICOM reader applies the slope and intercept values by default.
