4#ifndef OPENCV_slideio_cvsmallscene_HPP
5#define OPENCV_slideio_cvsmallscene_HPP
7#include "slideio/core/slideio_core_def.hpp"
8#include "slideio/core/cvscene.hpp"
11#pragma warning( push )
12#pragma warning(disable: 4251)
17 class SLIDEIO_CORE_EXPORTS CVSmallScene :
public CVScene
23 std::string getFilePath()
const override {
26 std::string getName()
const override {
29 cv::Rect getRect()
const override {
32 int getNumChannels()
const override {
35 slideio::DataType getChannelDataType(
int channel)
const override {
36 return m_channelDataType;
38 Resolution getResolution()
const override {
41 double getMagnification()
const override {
42 return m_magnification;
47 void readResampledBlockChannels(
const cv::Rect& blockRect,
const cv::Size& blockSize,
48 const std::vector<int>& channelIndices, cv::OutputArray output)
override;
49 virtual bool init() {
return false; }
51 virtual void readImage(cv::OutputArray output) = 0;
53 std::string m_filePath;
54 std::string m_sceneName;
55 cv::Rect m_sceneRect{0,0,0,0};
57 Resolution m_resolution{0.,0.};
58 double m_magnification{ 0. };
60 DataType m_channelDataType;
Definition: exceptions.hpp:12
Compression
raster data compression enum
Definition: slideio_enums.hpp:12