Mercurial > hg > orthanc
comparison OrthancServer/Internals/DicomImageDecoder.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 | 8b1baa2315b8 |
children | 595cf22b3e7e |
comparison
equal
deleted
inserted
replaced
1923:6ac7f31fc543 | 1924:6c73df12ca51 |
---|---|
55 bool ignorePhotometricInterpretation); | 55 bool ignorePhotometricInterpretation); |
56 | 56 |
57 static ImageAccessor* DecodeUncompressedImage(DcmDataset& dataset, | 57 static ImageAccessor* DecodeUncompressedImage(DcmDataset& dataset, |
58 unsigned int frame); | 58 unsigned int frame); |
59 | 59 |
60 static bool IsPsmctRle1(DcmDataset& dataset); | |
61 | |
62 static ImageAccessor* ApplyCodec(const DcmCodec& codec, | 60 static ImageAccessor* ApplyCodec(const DcmCodec& codec, |
63 const DcmCodecParameter& parameters, | 61 const DcmCodecParameter& parameters, |
64 DcmDataset& dataset, | 62 DcmDataset& dataset, |
65 unsigned int frame); | 63 unsigned int frame); |
66 | 64 |
72 | 70 |
73 static void ApplyExtractionMode(std::auto_ptr<ImageAccessor>& image, | 71 static void ApplyExtractionMode(std::auto_ptr<ImageAccessor>& image, |
74 ImageExtractionMode mode); | 72 ImageExtractionMode mode); |
75 | 73 |
76 public: | 74 public: |
75 static bool IsPsmctRle1(DcmDataset& dataset); | |
76 | |
77 static bool DecodePsmctRle1(std::string& output, | |
78 DcmDataset& dataset); | |
79 | |
77 static ImageAccessor *Decode(ParsedDicomFile& dicom, | 80 static ImageAccessor *Decode(ParsedDicomFile& dicom, |
78 unsigned int frame); | 81 unsigned int frame); |
79 | 82 |
80 static void ExtractPngImage(std::string& result, | 83 static void ExtractPngImage(std::string& result, |
81 std::auto_ptr<ImageAccessor>& image, | 84 std::auto_ptr<ImageAccessor>& image, |