Mercurial > hg > orthanc
comparison Core/DicomParsing/Internals/DicomImageDecoder.h @ 3744:accf1b60b108
accessing raw pixel data
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 12 Mar 2020 17:58:34 +0100 |
parents | 2a170a8f1faf |
children |
comparison
equal
deleted
inserted
replaced
3743:33c19a6643e1 | 3744:accf1b60b108 |
---|---|
32 | 32 |
33 | 33 |
34 #pragma once | 34 #pragma once |
35 | 35 |
36 #include "../../Compatibility.h" | 36 #include "../../Compatibility.h" |
37 #include "../ParsedDicomFile.h" | 37 #include "../../Images/ImageAccessor.h" |
38 | 38 |
39 #include <memory> | 39 #include <memory> |
40 | 40 |
41 #if !defined(ORTHANC_ENABLE_JPEG) | 41 #if !defined(ORTHANC_ENABLE_JPEG) |
42 # error The macro ORTHANC_ENABLE_JPEG must be defined | 42 # error The macro ORTHANC_ENABLE_JPEG must be defined |
60 class DcmCodecParameter; | 60 class DcmCodecParameter; |
61 class DcmRepresentationParameter; | 61 class DcmRepresentationParameter; |
62 | 62 |
63 namespace Orthanc | 63 namespace Orthanc |
64 { | 64 { |
65 class ParsedDicomFile; | |
66 | |
65 class DicomImageDecoder : public boost::noncopyable | 67 class DicomImageDecoder : public boost::noncopyable |
66 { | 68 { |
67 private: | 69 private: |
68 class ImageSource; | 70 class ImageSource; |
69 | 71 |
100 DcmDataset& dataset); | 102 DcmDataset& dataset); |
101 | 103 |
102 static ImageAccessor *Decode(ParsedDicomFile& dicom, | 104 static ImageAccessor *Decode(ParsedDicomFile& dicom, |
103 unsigned int frame); | 105 unsigned int frame); |
104 | 106 |
107 static ImageAccessor *Decode(DcmDataset& dataset, | |
108 unsigned int frame); | |
109 | |
105 static void ExtractPamImage(std::string& result, | 110 static void ExtractPamImage(std::string& result, |
106 std::unique_ptr<ImageAccessor>& image, | 111 std::unique_ptr<ImageAccessor>& image, |
107 ImageExtractionMode mode, | 112 ImageExtractionMode mode, |
108 bool invert); | 113 bool invert); |
109 | 114 |