6#include "slideio/drivers/dcm/dcm_api_def.hpp"
7#include "slideio/core/cvscene.hpp"
8#include "slideio/core/tools/tilecomposer.hpp"
9#include "slideio/drivers/dcm/dcmfile.hpp"
12#pragma warning( push )
13#pragma warning(disable: 4251)
20 class SLIDEIO_DCM_EXPORTS WSIScene :
public CVScene,
public Tiler
25 int zoomLevelIndex = 0;
28 double relativeZoom = 1.;
32 void addFile(std::shared_ptr<DCMFile>& file);
34 std::string getFilePath()
const override;
35 std::string getName()
const override;
36 cv::Rect getRect()
const override;
37 int getNumChannels()
const override;
38 slideio::DataType getChannelDataType(
int channel)
const override;
39 Resolution getResolution()
const override;
40 double getMagnification()
const override;
43 std::shared_ptr<DCMFile> getBaseFile()
const;
46 int getTileCount(
void* userData)
override;
47 bool getTileRect(
int tileIndex, cv::Rect& tileRect,
void* userData)
override;
48 bool readTile(
int tileIndex,
const std::vector<int>& channelIndices, cv::OutputArray tileRaster,
49 void* userData)
override;
50 void initializeBlock(
const cv::Size& blockSize,
const std::vector<int>& channelIndices,
51 cv::OutputArray output)
override;
52 void readResampledBlockChannelsEx(
const cv::Rect& blockRect,
const cv::Size& blockSize,
53 const std::vector<int>& componentIndices,
int zSliceIndex,
int tFrameIndex,
54 cv::OutputArray output)
override;
55 std::shared_ptr<CVScene> getAuxImage(
const std::string& imageName)
const override;
58 std::vector<std::shared_ptr<DCMFile>> m_files;
59 cv::Rect m_rect = { 0, 0, 0, 0 };
63 int m_numChannels = 0;
64 std::string m_filePath;
65 DataType m_dataType = DataType::DT_Unknown;
67 double m_magnification = 0;
68 Resolution m_resolution = { 0, 0 };
69 std::map<std::string, std::shared_ptr<DCMScene>> m_auxImages;
Definition: exceptions.hpp:12
Compression
raster data compression enum
Definition: slideio_enums.hpp:12