annotate Framework/TiffReader.h @ 312:0683312e21ba

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