Mercurial > hg > orthanc-stone
comparison Framework/StoneEnumerations.cpp @ 625:2eeb5857eb43
DicomInstanceParameters
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 May 2019 18:11:52 +0200 |
parents | 3080ec4ec6b9 |
children | 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
624:573e35378999 | 625:2eeb5857eb43 |
---|---|
25 #include <Core/OrthancException.h> | 25 #include <Core/OrthancException.h> |
26 #include <Core/Toolbox.h> | 26 #include <Core/Toolbox.h> |
27 | 27 |
28 namespace OrthancStone | 28 namespace OrthancStone |
29 { | 29 { |
30 bool StringToSopClassUid(SopClassUid& result, | 30 SopClassUid StringToSopClassUid(const std::string& source) |
31 const std::string& source) | |
32 { | 31 { |
33 std::string s = Orthanc::Toolbox::StripSpaces(source); | 32 std::string s = Orthanc::Toolbox::StripSpaces(source); |
34 | 33 |
35 if (s == "1.2.840.10008.5.1.4.1.1.481.2") | 34 if (s == "1.2.840.10008.5.1.4.1.1.481.2") |
36 { | 35 { |
37 result = SopClassUid_RTDose; | 36 return SopClassUid_RTDose; |
38 return true; | |
39 } | 37 } |
40 else | 38 else |
41 { | 39 { |
42 //LOG(INFO) << "Unknown SOP class UID: " << source; | 40 //LOG(INFO) << "Other SOP class UID: " << source; |
43 return false; | 41 return SopClassUid_Other; |
44 } | 42 } |
45 } | 43 } |
46 | 44 |
47 | 45 |
48 void ComputeWindowing(float& targetCenter, | 46 void ComputeWindowing(float& targetCenter, |