SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
svsslide.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_svsslide_HPP
5#define OPENCV_slideio_svsslide_HPP
6
7#include "slideio/drivers/svs/svs_api_def.hpp"
8#include "slideio/core/cvscene.hpp"
9#include "slideio/core/cvslide.hpp"
10#include "slideio/imagetools/libtiff.hpp"
11#include <map>
12
13#if defined(_MSC_VER)
14#pragma warning( push )
15#pragma warning(disable: 4251)
16#endif
17
18namespace slideio
19{
20 class SVSSlide;
21}
22
23//std::ostream& operator << (std::ostream& os, const slideio::SVSSlide& slide);
24
25namespace slideio
26{
27 class SLIDEIO_SVS_EXPORTS SVSSlide : public slideio::CVSlide
28 {
29 protected:
30 SVSSlide();
31 public:
32 virtual ~SVSSlide();
33 int getNumScenes() const override;
34 std::string getFilePath() const override;
35 std::shared_ptr<slideio::CVScene> getScene(int index) const override;
36 static std::shared_ptr<SVSSlide> openFile(const std::string& path);
37 static void closeFile(libtiff::TIFF* hfile);
38 std::shared_ptr<CVScene> getAuxImage(const std::string& sceneName) const override;
39 void log();
40 private:
41 std::vector<std::shared_ptr<slideio::CVScene>> m_Scenes;
42 std::map<std::string, std::shared_ptr<slideio::CVScene>> m_auxImages;
43 std::string m_filePath;
44 };
45}
46
47
48#if defined(_MSC_VER)
49#pragma warning( pop )
50#endif
51
52#endif
CVSlide is an base class for representation of medical slide.
Definition: cvslide.hpp:28
Definition: exceptions.hpp:12