SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
svssmallscene.hpp
1// This file is part of slideio project.
2// It is subject to the license terms in the LICENSE file found in the top-level directory
3// of this distribution and at http://slideio.com/license.html.
4#pragma once
5
6#include "slideio/drivers/svs/svs_api_def.hpp"
7#include "slideio/drivers/svs/svsscene.hpp"
8#include "slideio/imagetools/tifftools.hpp"
9
10#if defined(_MSC_VER)
11#pragma warning( push )
12#pragma warning(disable: 4251)
13#endif
14
15namespace slideio
16{
17 class SLIDEIO_SVS_EXPORTS SVSSmallScene : public SVSScene
18 {
19 public:
20 SVSSmallScene(
21 const std::string& filePath,
22 const std::string& driverId,
23 const std::string& name,
24 const slideio::TiffDirectory& dir,
25 bool auxiliary=true);
26 cv::Rect getRect() const override;
27 int getNumChannels() const override;
28 void readResampledBlockChannelsEx(const cv::Rect& blockRect, const cv::Size& blockSize,
29 const std::vector<int>& channelIndices, int zSliceIndex, int tFrameIndex, cv::OutputArray output) override;
30 private:
31 slideio::TiffDirectory m_directory;
32 };
33}
34
35#if defined(_MSC_VER)
36#pragma warning( pop )
37#endif
Definition: exceptions.hpp:15