Mercurial > hg > orthanc
diff Core/DicomFormat/DicomMap.cpp @ 3690:a9ce35d67c3c
implementation of "/instances/.../rendered" for grayscale images
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Feb 2020 13:57:43 +0100 |
parents | 26c6d47467a9 |
children | 898903022836 2a170a8f1faf |
line wrap: on
line diff
--- a/Core/DicomFormat/DicomMap.cpp Tue Feb 25 11:07:56 2020 +0100 +++ b/Core/DicomFormat/DicomMap.cpp Tue Feb 25 13:57:43 2020 +0100 @@ -984,6 +984,21 @@ } } + bool DicomMap::ParseFirstFloat(float& result, + const DicomTag& tag) const + { + const DicomValue* value = TestAndGetValue(tag); + + if (value == NULL) + { + return false; + } + else + { + return value->ParseFirstFloat(result); + } + } + bool DicomMap::ParseDouble(double& result, const DicomTag& tag) const {