annotate Framework/TiffReader.h @ 297:c1687b8fc800

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