SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
pkesmallscene.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/pke/pke_api_def.hpp"
7#include "slideio/drivers/pke/pkescene.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_PKE_EXPORTS PKESmallScene : public PKEScene
18 {
19 public:
20 PKESmallScene(
21 const std::string& filePath,
22 const std::string& name,
23 const slideio::TiffDirectory& dir,
24 bool auxiliary=true);
25 cv::Rect getRect() const override;
26 int getNumChannels() const override;
27 void readResampledBlockChannels(const cv::Rect& blockRect, const cv::Size& blockSize, const std::vector<int>& channelIndices,
28 cv::OutputArray output) override;
29 private:
30 slideio::TiffDirectory m_directory;
31 LevelInfo m_levelInfo;
32 };
33}
34
35#if defined(_MSC_VER)
36#pragma warning( pop )
37#endif
Definition: exceptions.hpp:12