Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
3689:e85bfba2d307 | 3690:a9ce35d67c3c |
---|---|
982 { | 982 { |
983 return value->ParseFloat(result); | 983 return value->ParseFloat(result); |
984 } | 984 } |
985 } | 985 } |
986 | 986 |
987 bool DicomMap::ParseFirstFloat(float& result, | |
988 const DicomTag& tag) const | |
989 { | |
990 const DicomValue* value = TestAndGetValue(tag); | |
991 | |
992 if (value == NULL) | |
993 { | |
994 return false; | |
995 } | |
996 else | |
997 { | |
998 return value->ParseFirstFloat(result); | |
999 } | |
1000 } | |
1001 | |
987 bool DicomMap::ParseDouble(double& result, | 1002 bool DicomMap::ParseDouble(double& result, |
988 const DicomTag& tag) const | 1003 const DicomTag& tag) const |
989 { | 1004 { |
990 const DicomValue* value = TestAndGetValue(tag); | 1005 const DicomValue* value = TestAndGetValue(tag); |
991 | 1006 |