Mercurial > hg > orthanc
annotate Plugins/Samples/GdcmDecoder/GdcmImageDecoder.h @ 2260:a7a4fd44286c
updated changes
author | amazy |
---|---|
date | Thu, 02 Feb 2017 21:18:59 +0100 |
parents | a3a65de1840f |
children | 23f5ff059ce2 |
rev | line source |
---|---|
1834 | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
1900 | 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
1834 | 4 * Department, University Hospital of Liege, Belgium |
2244
a3a65de1840f
shared copyright with osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1900
diff
changeset
|
5 * Copyright (C) 2017 Osimis, Belgium |
1834 | 6 * |
7 * This program is free software: you can redistribute it and/or | |
8 * modify it under the terms of the GNU General Public License as | |
9 * published by the Free Software Foundation, either version 3 of the | |
10 * License, or (at your option) any later version. | |
11 * | |
12 * This program is distributed in the hope that it will be useful, but | |
13 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 * General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU General Public License | |
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 **/ | |
20 | |
21 | |
22 #pragma once | |
23 | |
24 #include <orthanc/OrthancCPlugin.h> | |
25 #include <stdint.h> | |
26 #include <boost/noncopyable.hpp> | |
27 #include <boost/shared_ptr.hpp> | |
28 | |
29 namespace OrthancPlugins | |
30 { | |
31 class GdcmImageDecoder : public boost::noncopyable | |
32 { | |
33 private: | |
34 struct PImpl; | |
35 boost::shared_ptr<PImpl> pimpl_; | |
36 | |
37 public: | |
38 GdcmImageDecoder(const void* dicom, | |
39 size_t size); | |
40 | |
41 OrthancPluginPixelFormat GetFormat() const; | |
42 | |
43 unsigned int GetWidth() const; | |
44 | |
45 unsigned int GetHeight() const; | |
46 | |
47 unsigned int GetFramesCount() const; | |
48 | |
49 static size_t GetBytesPerPixel(OrthancPluginPixelFormat format); | |
50 | |
51 OrthancPluginImage* Decode(OrthancPluginContext* context, | |
52 unsigned int frameIndex) const; | |
53 }; | |
54 } |