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 void readMetadata(GDALDatasetH ds);
25 GDALSlide(GDALDatasetH ds, const std::string& filePath);
26 public:
27 virtual ~GDALSlide();
28 int getNumScenes() const override;
29 std::string getFilePath() const override;
30 std::shared_ptr<slideio::CVScene> getScene(int index) const override;
31 private:
32 std::shared_ptr<slideio::CVScene> m_scene;
33 };
34
35}
36
37#if defined(_MSC_VER)
38#pragma warning( pop )
39#endif
40
41#endif
CVSlide is an base class for representation of medical slide.
Definition: cvslide.hpp:28
Definition: exceptions.hpp:15