SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
ndpifile.hpp
1// This file is part of slideio project.
2// It is subject to the license terms in the LICENSE file found in the top-level directory
3// of this distribution and at http://slideio.com/license.html.
4#ifndef OPENCV_slideio_ndpifile_HPP
5#define OPENCV_slideio_ndpifile_HPP
6
7
8#if defined(_MSC_VER)
9#pragma warning( push )
10#pragma warning(disable: 4251)
11#endif
12#include <string>
13
14#include "ndpitifftools.hpp"
15
16namespace libtiff
17{
18 struct tiff;
19 typedef tiff TIFF;
20}
21
22namespace slideio
23{
24 class SLIDEIO_NDPI_EXPORTS NDPIFile
25 {
26 public:
27 NDPIFile(){
28 }
29 ~NDPIFile();
30 void init(const std::string& filePath);
31 const std::vector<NDPITiffDirectory>& directories() const {
32 return m_directories;
33 }
34 const std::string getFilePath() const {
35 return m_filePath;
36 }
37 libtiff::TIFF* getTiffHandle()
38 {
39 return m_tiff;
40 }
41 const NDPITiffDirectory& findZoomDirectory(double zoom, int sceneWidth, int dirBegin, int dirEnd);
42 private:
43 void scanFile();
44 private:
45 std::string m_filePath;
46 NDPITIFFKeeper m_tiff;
47 std::vector<NDPITiffDirectory> m_directories;
48 };
49}
50
51
52#if defined(_MSC_VER)
53#pragma warning( pop )
54#endif
55
56#endif
Definition: exceptions.hpp:12