comparison OrthancServer/ParsedDicomFile.h @ 1924:6c73df12ca51

New URI: "/instances/.../frames/.../raw" to access the raw frames (bypass image decoding)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 07 Mar 2016 17:43:20 +0100
parents 8b0ee8d5e6d0
children e251606c1433
comparison
equal deleted inserted replaced
1923:6ac7f31fc543 1924:6c73df12ca51
57 void RemovePrivateTagsInternal(const std::set<DicomTag>* toKeep); 57 void RemovePrivateTagsInternal(const std::set<DicomTag>* toKeep);
58 58
59 void UpdateStorageUid(const DicomTag& tag, 59 void UpdateStorageUid(const DicomTag& tag,
60 const std::string& value, 60 const std::string& value,
61 bool decodeDataUriScheme); 61 bool decodeDataUriScheme);
62
63 void InvalidateCache();
62 64
63 public: 65 public:
64 ParsedDicomFile(bool createIdentifiers); // Create a minimal DICOM instance 66 ParsedDicomFile(bool createIdentifiers); // Create a minimal DICOM instance
65 67
66 ParsedDicomFile(const DicomMap& map); 68 ParsedDicomFile(const DicomMap& map);
144 146
145 bool ExtractPdf(std::string& pdf); 147 bool ExtractPdf(std::string& pdf);
146 148
147 void Convert(DicomMap& tags); 149 void Convert(DicomMap& tags);
148 150
151 void GetRawFrame(std::string& target, // OUT
152 std::string& mime, // OUT
153 unsigned int frameId); // IN
154
149 static ParsedDicomFile* CreateFromJson(const Json::Value& value, 155 static ParsedDicomFile* CreateFromJson(const Json::Value& value,
150 DicomFromJsonFlags flags); 156 DicomFromJsonFlags flags);
151 }; 157 };
152 158
153 } 159 }