comparison Framework/Toolbox/DicomFrameConverter.cpp @ 328:c80b5bddf86b am-2

support of monochrome1
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 17 Oct 2018 10:26:33 +0200
parents 5412adf19980
children b3b3fa0e3689
comparison
equal deleted inserted replaced
327:8716176ff7f0 328:c80b5bddf86b
111 else 111 else
112 { 112 {
113 // Type 1 tag, must be present 113 // Type 1 tag, must be present
114 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat); 114 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat);
115 } 115 }
116
117 photometric_ = Orthanc::StringToPhotometricInterpretation(photometric.c_str());
116 118
117 isColor_ = (photometric != "MONOCHROME1" && 119 isColor_ = (photometric != "MONOCHROME1" &&
118 photometric != "MONOCHROME2"); 120 photometric != "MONOCHROME2");
119 121
120 // TODO Add more checks, e.g. on the number of bytes per value 122 // TODO Add more checks, e.g. on the number of bytes per value