SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
slideio::ImageDriverManager Class Reference

Class ImageDriverManager keeps overview over specific image format drivers. Allows opening a slide with a specific driver. More...

#include <imagedrivermanager.hpp>

Static Public Member Functions

static std::vector< std::string > getDriverIDs ()
 returns a list of ids of available image format drivers
 
static std::shared_ptr< CVSlideopenSlide (const std::string &filePath, const std::string &driver)
 opens a slide and returns a smart pointer to object of slideio::CVSlide class. More...
 
static void setLogLevel (const std::string &level)
 sets logging level. More...
 

Detailed Description

Class ImageDriverManager keeps overview over specific image format drivers. Allows opening a slide with a specific driver.

The class contains a set of static methods that provide access to the image format drivers.

Member Function Documentation

◆ openSlide()

static std::shared_ptr< CVSlide > slideio::ImageDriverManager::openSlide ( const std::string &  filePath,
const std::string &  driver 
)
static

opens a slide and returns a smart pointer to object of slideio::CVSlide class.

Parameters
filePath: a path to a slide file/folder;
driver: a driver id which should be used for the opening of the slide.
Returns
object of class slideio::CVSlide which provides access to the slide data.
Exceptions
std::runtime_errorif driver cannot be found.

◆ setLogLevel()

static void slideio::ImageDriverManager::setLogLevel ( const std::string &  level)
static

sets logging level.

@params level : log level. Should be one of the following strings: 'INFO','WARNING','ERROR','FATAL'(default).


The documentation for this class was generated from the following files: