comparison Framework/Toolbox/DicomInstanceParameters.cpp @ 1091:5a18e6a395bc toa2019102301

Added DoseUnit tag retrieval to DicomInstanceParameters
author Benjamin Golinvaux <bgo@osimis.io>
date Wed, 23 Oct 2019 15:34:39 +0200
parents dd8ff977aaf2
children 7681f3943748
comparison
equal deleted inserted replaced
1087:b8521df3944a 1091:5a18e6a395bc
108 } 108 }
109 109
110 if (sopClassUid_ == SopClassUid_RTDose) 110 if (sopClassUid_ == SopClassUid_RTDose)
111 { 111 {
112 ComputeDoseOffsets(dicom); 112 ComputeDoseOffsets(dicom);
113
114 static const Orthanc::DicomTag DICOM_TAG_DOSE_UNITS(0x3004, 0x0002);
115
116 if (!dicom.LookupStringValue(doseUnits_, DICOM_TAG_DOSE_UNITS, false))
117 {
118 LOG(WARNING) << "Tag DoseUnits (0x3004, 0x0002) is missing in " << sopInstanceUid_;
119 doseUnits_ = "";
120 }
121
113 } 122 }
114 123
115 isColor_ = (imageInformation_.GetPhotometricInterpretation() != Orthanc::PhotometricInterpretation_Monochrome1 && 124 isColor_ = (imageInformation_.GetPhotometricInterpretation() != Orthanc::PhotometricInterpretation_Monochrome1 &&
116 imageInformation_.GetPhotometricInterpretation() != Orthanc::PhotometricInterpretation_Monochrome2); 125 imageInformation_.GetPhotometricInterpretation() != Orthanc::PhotometricInterpretation_Monochrome2);
117 126