SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
convertertools.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_convertertools_HPP
5#define OPENCV_slideio_convertertools_HPP
6
7#include "slideio/converter/converter_def.hpp"
8#include "slideio/core/cvscene.hpp"
9
10namespace slideio
11{
12 class SLIDEIO_CONVERTER_EXPORTS ConverterTools
13 {
14 public:
15 static int computeNumZoomLevels(int width, int height);
16 static cv::Size scaleSize(const cv::Size& size, int zoomLevel, bool downScale=true);
17 static cv::Rect scaleRect(const cv::Rect& rect, int zoomLevel, bool downScale);
18 static void readTile(const CVScenePtr& scene, int zoomLevel, const cv::Rect& sceneBlockRect,
19 int slice, int frame, cv::OutputArray tile);
20 static cv::Rect computeZoomLevelRect(const cv::Rect& sceneRect, const cv::Size& tileSize, int zoomLevel);
21
22
23 };
24}
25
26#endif
Definition: exceptions.hpp:12