4#ifndef OPENCV_slideio_convertertools_HPP
5#define OPENCV_slideio_convertertools_HPP
7#include "slideio/converter/converter_def.hpp"
8#include "slideio/core/cvscene.hpp"
12 class SLIDEIO_CONVERTER_EXPORTS ConverterTools
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);
Definition: exceptions.hpp:12