SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
gdalslide.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_gdalslide_HPP
5#define OPENCV_slideio_gdalslide_HPP
6
7#include "slideio/drivers/gdal/gdal_api_def.hpp"
8#include "slideio/core/cvslide.hpp"
9#include "slideio/core/cvscene.hpp"
10#include "slideio/imagetools/gdal_lib.hpp"
11#include <opencv2/core.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_GDAL_EXPORTS GDALSlide : public slideio::CVSlide
21 {
22 friend class GDALImageDriver;
23 protected:
24 GDALSlide(GDALDatasetH ds, const std::string& filePath);
25 public:
26 virtual ~GDALSlide();
27 int getNumScenes() const override;
28 std::string getFilePath() const override;
29 std::shared_ptr<slideio::CVScene> getScene(int index) const override;
30 private:
31 std::shared_ptr<slideio::CVScene> m_scene;
32 };
33
34}
35
36#if defined(_MSC_VER)
37#pragma warning( pop )
38#endif
39
40#endif
CVSlide is an base class for representation of medical slide.
Definition: cvslide.hpp:28
Definition: exceptions.hpp:12