4#ifndef OPENCV_slideio_imagedrivermanager_HPP
5#define OPENCV_slideio_imagedrivermanager_HPP
7#include "slideio/slideio/slideio_def.hpp"
8#include "slideio/core/cvslide.hpp"
9#include <opencv2/core.hpp>
14#pragma warning( push )
15#pragma warning(disable: 4251)
26 class SLIDEIO_EXPORTS ImageDriverManager
30 ~ImageDriverManager();
34 static std::shared_ptr<slideio::ImageDriver> findDriver(
const std::string& filePath);
43 static std::shared_ptr<CVSlide>
openSlide(
const std::string& filePath,
const std::string& driver);
51 static void initialize();
53 static std::map<std::string, std::shared_ptr<ImageDriver>> driverMap;
static void setLogLevel(const std::string &level)
sets logging level.
static std::shared_ptr< CVSlide > openSlide(const std::string &filePath, const std::string &driver)
opens a slide and returns a smart pointer to object of slideio::CVSlide class.
static std::vector< std::string > getDriverIDs()
returns a list of ids of available image format drivers
Definition: exceptions.hpp:12