# HG changeset patch # User Sebastien Jodogne # Date 1643646066 -3600 # Node ID e1ef13ae8fbda72b4043c13695d295499c544d74 # Parent 81dfdcf16e16f1f9153a4fc098561a3e9f0ee93e added warning message in DicomImageInformation() diff -r 81dfdcf16e16 -r e1ef13ae8fbd OrthancFramework/Sources/DicomFormat/DicomImageInformation.cpp --- a/OrthancFramework/Sources/DicomFormat/DicomImageInformation.cpp Wed Jan 19 17:06:22 2022 +0100 +++ b/OrthancFramework/Sources/DicomFormat/DicomImageInformation.cpp Mon Jan 31 17:21:06 2022 +0100 @@ -42,6 +42,16 @@ { DicomImageInformation::DicomImageInformation(const DicomMap& values) { + std::string sopClassUid; + if (values.LookupStringValue(sopClassUid, DICOM_TAG_SOP_CLASS_UID, false)) + { + sopClassUid = Toolbox::StripSpaces(sopClassUid); + if (sopClassUid == "1.2.840.10008.5.1.4.1.1.481.3" /* RT-STRUCT */) + { + LOG(WARNING) << "Orthanc::DicomImageInformation() should not be applied to SOP Class UID: " << sopClassUid; + } + } + uint32_t pixelRepresentation = 0; uint32_t planarConfiguration = 0;