Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Toolbox/DicomInstanceParameters.cpp @ 2175:43ef60388fa2
removed useless function
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Oct 2024 21:54:39 +0200 |
parents | 2410a171ebfb |
children |
comparison
equal
deleted
inserted
replaced
2174:2410a171ebfb | 2175:43ef60388fa2 |
---|---|
822 data_.pixelSpacingX_ = pixelSpacingX; | 822 data_.pixelSpacingX_ = pixelSpacingX; |
823 data_.pixelSpacingY_ = pixelSpacingY; | 823 data_.pixelSpacingY_ = pixelSpacingY; |
824 } | 824 } |
825 | 825 |
826 | 826 |
827 static const Json::Value* LookupDicomWebSingleValue(const Json::Value& dicomweb, | |
828 const std::string& tag, | |
829 const std::string& vr) | |
830 { | |
831 static const char* const VALUE = "Value"; | |
832 static const char* const VR = "vr"; | |
833 | |
834 if (dicomweb.type() == Json::objectValue && | |
835 dicomweb.isMember(tag) && | |
836 dicomweb[tag].type() == Json::objectValue && | |
837 dicomweb[tag].isMember(VALUE) && | |
838 dicomweb[tag].isMember(VR) && | |
839 dicomweb[tag][VR].type() == Json::stringValue && | |
840 dicomweb[tag][VR].asString() == vr && | |
841 dicomweb[tag][VALUE].type() == Json::arrayValue && | |
842 dicomweb[tag][VALUE].size() == 1u) | |
843 { | |
844 return &dicomweb[tag][VALUE][0]; | |
845 } | |
846 else | |
847 { | |
848 return NULL; | |
849 } | |
850 } | |
851 | |
852 | |
853 void DicomInstanceParameters::EnrichUsingDicomWeb(const Json::Value& dicomweb) | 827 void DicomInstanceParameters::EnrichUsingDicomWeb(const Json::Value& dicomweb) |
854 { | 828 { |
855 DicomWebDataset dataset(dicomweb); | 829 DicomWebDataset dataset(dicomweb); |
856 InjectSequenceTags(dataset); | 830 InjectSequenceTags(dataset); |
857 } | 831 } |