SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
blocktiler.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#include "slideio/core/slideio_core_def.hpp"
6#include <unordered_map>
7#include <string>
8#include <memory>
9#include <opencv2/core.hpp>
10
11#if defined(_MSC_VER)
12#pragma warning( push )
13#pragma warning(disable: 4251)
14#endif
15
16namespace slideio {
17 class ITileVisitor;
18 class SLIDEIO_CORE_EXPORTS BlockTiler {
19 public:
20 BlockTiler(const cv::Mat& block, const cv::Size& tileSize);
21 void apply(ITileVisitor* visitor) const;
22 void apply(std::function<void(int, int, const cv::Mat&)> visitor) const;
23 private:
24 cv::Size m_tileSize;
25 cv::Mat m_block;
26 };
27}
Definition: exceptions.hpp:12