4#ifndef OPENCV_slideio_gdalscene_HPP
5#define OPENCV_slideio_gdalscene_HPP
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#include "slideio/imagetools/gdal_lib.hpp"
14#pragma warning( push )
15#pragma warning(disable: 4251)
23 GDALScene(
const std::string& filePath);
24 GDALScene(GDALDatasetH ds,
const std::string& filePath);
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 static GDALDatasetH openFile(
const std::string& filePath);
32 static void closeFile(GDALDatasetH hfile);
33 static slideio::DataType dataTypeFromGDALDataType(GDALDataType dt);
34 std::string getName()
const override;
35 cv::Rect getRect()
const override;
36 void readResampledBlockChannels(
const cv::Rect& blockRect,
const cv::Size& blockSize,
const std::vector<int>& channelIndices, cv::OutputArray output)
override;
44 std::string m_filePath;
class CVScene represents a base class for opencv based representations of raster images contained in ...
Definition: cvscene.hpp:37
Definition: exceptions.hpp:12
Compression
raster data compression enum
Definition: slideio_enums.hpp:12