SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
scnslide.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_scnslide_HPP
5#define OPENCV_slideio_scnslide_HPP
6
7#include "scnscene.hpp"
8#include "slideio/drivers/scn/scn_api_def.hpp"
9#include "slideio/core/cvscene.hpp"
10#include "slideio/core/cvslide.hpp"
11#include "slideio/imagetools/tifftools.hpp"
12
13#if defined(_MSC_VER)
14#pragma warning( push )
15#pragma warning(disable: 4251)
16#endif
17
18namespace slideio
19{
20 class SLIDEIO_SCN_EXPORTS SCNSlide : public slideio::CVSlide
21 {
22 friend class SCNImageDriver;
23 protected:
24 SCNSlide(const std::string& filePath);
25 void init();
26 void constructScenes();
27 public:
28 virtual ~SCNSlide();
29 int getNumScenes() const override;
30 std::string getFilePath() const override;
31 std::shared_ptr<slideio::CVScene> getScene(int index) const override;
32 std::shared_ptr<CVScene> getAuxImage(const std::string& sceneName) const override;
33 private:
34 std::vector<std::shared_ptr<slideio::SCNScene>> m_Scenes;
35 std::map<std::string, std::shared_ptr<slideio::CVScene>> m_auxImages;
36 std::string m_filePath;
37 TIFFKeeper m_tiff;
38 };
39}
40
41#if defined(_MSC_VER)
42#pragma warning( pop )
43#endif
44
45#endif
CVSlide is an base class for representation of medical slide.
Definition: cvslide.hpp:28
Definition: exceptions.hpp:12