9#include "slideio/drivers/vsi/vsi_api_def.hpp"
10#include "slideio/drivers/vsi/etsfilescene.hpp"
11#include "slideio/drivers/vsi/volume.hpp"
12#include "slideio/drivers/vsi/vsistruct.hpp"
13#include "slideio/base/slideio_enums.hpp"
14#include "slideio/drivers/vsi/vsistream.hpp"
15#include "slideio/drivers/vsi/pyramid.hpp"
19#pragma warning(disable : 4251)
26 class SLIDEIO_VSI_EXPORTS EtsFile
29 EtsFile(
const std::string& filePath);
31 std::string getFilePath()
const {
35 DataType getDataType()
const {
39 int getNumChannels()
const {
47 void read(std::list<std::shared_ptr<Volume>>& volumes);
48 void readTilePart(
const vsi::TileInfo& tileInfo, cv::OutputArray tileRaster);
50 void assignVolume(
const std::shared_ptr<Volume>& volume) {
54 std::shared_ptr<Volume> getVolume()
const {
58 const cv::Size& getSize()
const {
62 const cv::Size& getTileSize()
const {
66 int getNumZSlices()
const {
70 int getNumTFrames()
const {
74 int getNumLambdas()
const {
78 int getNumPyramidLevels()
const {
79 return m_pyramid.getNumLevels();
82 const PyramidLevel& getPyramidLevel(
int index)
const {
83 return m_pyramid.getLevel(index);
85 void readTile(
int levelIndex,
int tileIndex,
const std::vector<int>& channelIndices,
int zSlice,
int tFrame, cv::OutputArray output);
87 std::string m_filePath;
88 DataType m_dataType = DataType::DT_Unknown;
89 int m_numChannels = 1;
90 ColorSpace m_colorSpace = ColorSpace::Unknown;
92 int m_compressionQuality = 0;
94 cv::Size m_sizeWithCompleteTiles;
99 uint32_t m_pixelInfoHints[17] = {0};
100 uint32_t m_backgroundColor[10] = {0};
101 bool m_usePyramid =
false;
103 std::shared_ptr<Volume> m_volume;
105 std::unique_ptr<VSIStream> m_etsStream;
106 std::vector<uint8_t> m_buffer;
Definition: exceptions.hpp:12
Compression
raster data compression enum
Definition: slideio_enums.hpp:12
@ Unknown
Unknown compression.