SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
gdalscene.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_gdalscene_HPP
5#define OPENCV_slideio_gdalscene_HPP
6
7#include "slideio/drivers/gdal/gdal_api_def.hpp"
8#include "slideio/core/cvscene.hpp"
9#include "slideio/base/slideio_enums.hpp"
10#include <opencv2/core.hpp>
11
12#if defined(_MSC_VER)
13#pragma warning( push )
14#pragma warning(disable: 4251)
15#endif
16
17namespace slideio
18{
19 class SmallImagePage;
20
21 class SLIDEIO_GDAL_EXPORTS GDALScene : public slideio::CVScene
22 {
23 public:
24 GDALScene(SmallImagePage* image, const std::string& filePath);
25 virtual ~GDALScene() = default;
26 std::string getFilePath() const override;
27 int getNumChannels() const override;
28 slideio::DataType getChannelDataType(int channel) const override;
29 slideio::Resolution getResolution() const override;
30 double getMagnification() const override;
31 std::string getName() const override;
32 cv::Rect getRect() const override;
33 void readResampledBlockChannelsEx(const cv::Rect& blockRect, const cv::Size& blockSize,
34 const std::vector<int>& componentIndices, int zSliceIndex, int tFrameIndex, cv::OutputArray output) override;
35 Compression getCompression() const override;
36 MetadataFormat getMetadataFormat() const override;
37 std::string getRawMetadata() const override;
38 private:
39 SmallImagePage* m_imagePage;
40 std::string m_filePath;
41 };
42}
43
44#if defined(_MSC_VER)
45#pragma warning( pop )
46#endif
47
48#endif
49
class CVScene represents a base class for opencv based representations of raster images contained in ...
Definition: cvscene.hpp:37
Definition: exceptions.hpp:15
Compression
raster data compression enum
Definition: slideio_enums.hpp:12