diff Core/DicomParsing/ParsedDicomFile.cpp @ 2896:3fabf9a673f6 db-changes

integration mainline->db-changes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 18 Oct 2018 10:48:11 +0200
parents f3c1eda54e47
children ae20fccdd867
line wrap: on
line diff
--- a/Core/DicomParsing/ParsedDicomFile.cpp	Thu Oct 18 10:43:24 2018 +0200
+++ b/Core/DicomParsing/ParsedDicomFile.cpp	Thu Oct 18 10:48:11 2018 +0200
@@ -1174,7 +1174,7 @@
     }
 
     ReplacePlainString(DICOM_TAG_PLANAR_CONFIGURATION, "0");  // Color channels are interleaved
-    ReplacePlainString(DICOM_TAG_PHOTOMETRIC_INTERPRETATION, "MONOCHROME2");
+    SetIfAbsent(DICOM_TAG_PHOTOMETRIC_INTERPRETATION, "MONOCHROME2"); // by default, greyscale images are in MONOCHROME2
 
     unsigned int bytesPerPixel = 0;