SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
czithumbnail.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#ifndef OPENCV_slideio_czithumbnail_HPP
5#define OPENCV_slideio_czithumbnail_HPP
6
7
8#include "slideio/drivers/czi/czi_api_def.hpp"
9#include "slideio/core/cvsmallscene.hpp"
10
11#if defined(_MSC_VER)
12#pragma warning( push )
13#pragma warning(disable: 4251)
14#endif
15
16namespace slideio
17{
18 class CZISlide;
19
20 class SLIDEIO_CZI_EXPORTS CZIThumbnail : public CVSmallScene
21 {
22 public:
23 bool init() override;
24 void setAttachmentData(CZISlide* slide, int64_t position, int64_t size, const std::string& name);
25 protected:
26 void readImage(cv::OutputArray output) override;
27 private:
28 int64_t m_dataPos{ 0 };
29 int64_t m_dataSize{ 0 };
30 CZISlide* m_slide{ nullptr };
31 std::shared_ptr<CVSmallScene> m_scene;
32 };
33};
34
35#if defined(_MSC_VER)
36#pragma warning( pop )
37#endif
38
39#endif
Definition: exceptions.hpp:12