6#include "slideio/slideio/slideio_def.hpp"
7#include "slideio/base/slideio_enums.hpp"
8#include "slideio/core/metadata.hpp"
15#pragma warning( push )
16#pragma warning(disable: 4251)
32 Scene(std::shared_ptr<CVScene> scene);
36 std::string getFilePath()
const;
38 std::string getName()
const;
46 std::tuple<int,int,int,int> getRect()
const;
48 int getNumChannels()
const;
52 int getNumZSlices()
const;
56 int getNumTFrames()
const;
62 slideio::DataType getChannelDataType(
int channel)
const;
65 std::string getChannelName(
int channel)
const;
70 std::tuple<double,double> getResolution()
const;
72 double getZSliceResolution()
const;
74 double getTFrameResolution()
const;
76 double getMagnification()
const;
86 int getBlockSize(
const std::tuple<int,int>& blockSize,
int refChannel,
int numChannels,
int numSlices,
int numFrames)
const;
117 void readBlock(
const std::tuple<int,int,int,int>& blockRect,
void* buffer,
size_t bufferSize);
132 void readBlockChannels(
const std::tuple<int,int,int,int>& blockRect,
const std::vector<int>& channelIndices,
void* buffer,
size_t bufferSize);
148 void readResampledBlock(
const std::tuple<int,int,int,int>& blockRect,
const std::tuple<int,int>& blockSize,
void* buffer,
size_t bufferSize);
165 void readResampledBlockChannels(
const std::tuple<int,int,int,int>& blockRect,
const std::tuple<int,int>& blockSize,
const std::vector<int>& channelIndices,
void* buffer,
size_t bufferSize);
205 void read4DBlock(
const std::tuple<int,int,int,int>& blockRect,
const std::tuple<int,int>& zSliceRange,
const std::tuple<int,int>& timeFrameRange,
void* buffer,
size_t bufferSize);
223 void read4DBlockChannels(
const std::tuple<int,int,int,int>& blockRect,
const std::vector<int>& channelIndices,
const std::tuple<int,int>& zSliceRange,
const std::tuple<int,int>& timeFrameRange,
void* buffer,
size_t bufferSize);
241 void readResampled4DBlock(
const std::tuple<int,int,int,int>& blockRect,
const std::tuple<int,int>& blockSize,
const std::tuple<int,int>& zSliceRange,
const std::tuple<int,int>& timeFrameRange,
void* buffer,
size_t bufferSize);
260 void readResampled4DBlockChannels(
const std::tuple<int,int,int,int>& blockRect,
const std::tuple<int,int>& blockSize,
const std::vector<int>& channelIndices,
const std::tuple<int,int>& zSliceRange,
const std::tuple<int,int>& timeFrameRange,
void* buffer,
size_t bufferSize);
279 void readResampledLevelBlockChannels(
int level,
const std::tuple<int,int,int,int>& levelRect,
280 const std::tuple<int,int>& blockSize,
const std::vector<int>& channelIndices,
281 void* buffer,
size_t bufferSize);
291 void readResampledLevel4DBlockChannels(
int level,
const std::tuple<int,int,int,int>& levelRect,
292 const std::tuple<int,int>& blockSize,
const std::vector<int>& channelIndices,
293 const std::tuple<int,int>& zSliceRange,
const std::tuple<int,int>& timeFrameRange,
294 void* buffer,
size_t bufferSize);
296 virtual const std::list<std::string>& getAuxImageNames()
const;
298 virtual int getNumAuxImages()
const;
300 std::string getRawMetadata()
const;
302 MetadataFormat getMetadataFormat()
const;
304 const Metadata& getMetadata()
const;
308 virtual std::shared_ptr<Scene> getAuxImage(
const std::string& imageName)
const;
309 std::shared_ptr<CVScene> getCVScene() {
return m_scene; }
315 int getNumZoomLevels()
const;
324 const LevelInfo* getLevelInfo(
int level)
const;
332 std::string toString()
const;
338 const Metadata& getChannelAttributes()
const;
340 std::shared_ptr<CVScene> m_scene;
344#define ScenePtr std::shared_ptr<slideio::Scene>
347#pragma warning( pop )
Description of a single level of the internal image pyramid of a scene.
Definition: levelinfo.hpp:26
Scene class represents a raster image contained in a slide.
Definition: scene.hpp:29
Slide class is an interface for accessing the information on a medical slide.
Definition: slide.hpp:30
Definition: exceptions.hpp:15
Compression
raster data compression enum
Definition: slideio_enums.hpp:12