4#ifndef OPENCV_slideio_vsiscene_hpp
5#define OPENCV_slideio_vsiscene_hpp
7#include "slideio/drivers/vsi/vsi_api_def.hpp"
8#include "slideio/core/cvscene.hpp"
9#include "slideio/core/tools/tilecomposer.hpp"
13#pragma warning( push )
14#pragma warning(disable: 4251)
22 class SLIDEIO_VSI_EXPORTS VSIScene :
public CVScene,
public Tiler
25 VSIScene(
const std::string& filePath, std::shared_ptr<vsi::VSIFile>& vsiFile);
27 std::string getFilePath()
const override {
30 std::string getName()
const override {
36 Resolution getResolution()
const override {
39 double getMagnification()
const override {
40 return m_magnification;
42 DataType getChannelDataType(
int channelIndex)
const override {
43 return m_channelDataType[channelIndex];
45 cv::Rect getRect()
const override;
46 int getNumChannels()
const override;
47 std::string getChannelName(
int channel)
const override;
48 void initializeBlock(
const cv::Size& blockSize,
const std::vector<int>& channelIndices,
49 cv::OutputArray output)
override;
51 std::string m_filePath;
53 std::string m_rawMetadata;
55 Resolution m_resolution;
56 double m_magnification;
59 std::vector<std::string> m_channelNames;
60 std::vector<DataType> m_channelDataType;
61 std::shared_ptr<vsi::VSIFile> m_vsiFile;
Definition: exceptions.hpp:12
Compression
raster data compression enum
Definition: slideio_enums.hpp:12