Mercurial > hg > orthanc-wsi
annotate Framework/TiffReader.h @ 321:0c34b6625c67
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 16 Oct 2024 15:01:46 +0200 |
parents | 0683312e21ba |
children |
rev | line source |
---|---|
297 | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
312
0683312e21ba
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
309
diff
changeset
|
5 * Copyright (C) 2017-2023 Osimis S.A., Belgium |
0683312e21ba
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
309
diff
changeset
|
6 * Copyright (C) 2024-2024 Orthanc Team SRL, Belgium |
309
7020852a8fa9
updated year to 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
297
diff
changeset
|
7 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
297 | 8 * |
9 * This program is free software: you can redistribute it and/or | |
10 * modify it under the terms of the GNU Affero General Public License | |
11 * as published by the Free Software Foundation, either version 3 of | |
12 * the License, or (at your option) any later version. | |
13 * | |
14 * This program is distributed in the hope that it will be useful, but | |
15 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
17 * Affero General Public License for more details. | |
18 * | |
19 * You should have received a copy of the GNU Affero General Public License | |
20 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
21 **/ | |
22 | |
23 | |
24 #pragma once | |
25 | |
26 #include "Enumerations.h" | |
27 | |
28 #include <tiff.h> | |
29 #include <tiffio.h> | |
30 #include <boost/noncopyable.hpp> | |
31 | |
32 namespace OrthancWSI | |
33 { | |
34 class TiffReader : public boost::noncopyable | |
35 { | |
36 private: | |
37 TIFF* tiff_; | |
38 | |
39 public: | |
321 | 40 explicit TiffReader(const std::string& path); |
297 | 41 |
42 ~TiffReader(); | |
43 | |
44 TIFF* GetTiff() | |
45 { | |
46 return tiff_; | |
47 } | |
48 | |
49 bool GetCurrentDirectoryInformation(ImageCompression& compression, | |
50 Orthanc::PixelFormat& pixelFormat, | |
51 Orthanc::PhotometricInterpretation& photometric); | |
52 }; | |
53 } |