SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
zvislide.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_zvislide_HPP
5#define OPENCV_slideio_zvislide_HPP
6#include "slideio/core/cvslide.hpp"
7#include "slideio/drivers/zvi/zviscene.hpp"
8#include <fstream>
9
10#if defined(_MSC_VER)
11#pragma warning( push )
12#pragma warning(disable: 4251)
13#endif
14
15namespace slideio
16{
17 class SLIDEIO_ZVI_EXPORTS ZVISlide : public CVSlide
18 {
19 friend class ZVIImageDriver;
20 protected:
21 ZVISlide(const std::string& filePath);
22 public:
23 int getNumScenes() const override;
24 std::string getFilePath() const override;
25 std::shared_ptr<CVScene> getScene(int index) const override;
26 double getMagnification() const;
27 Resolution getResolution() const;
28 double getZSliceResolution() const;
29 double getTFrameResolution() const;
30 private:
31 void init();
32 private:
33 std::string m_filePath;
34 std::shared_ptr<ZVIScene> m_scene;
35 };
36}
37
38#if defined(_MSC_VER)
39#pragma warning( pop )
40#endif
41
42#endif
Definition: exceptions.hpp:12