SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
imagedriver.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_imagedriver_HPP
5#define OPENCV_slideio_imagedriver_HPP
6
7#include "slideio/core/slideio_core_def.hpp"
8#include "slideio/core/cvslide.hpp"
9#include <opencv2/core.hpp>
10#include <string>
11
12namespace slideio
13{
14 class SLIDEIO_CORE_EXPORTS ImageDriver
15 {
16 public:
17 virtual ~ImageDriver(){}
18 virtual std::string getID() const = 0;
19 virtual bool canOpenFile(const std::string& filePath) const;
20 virtual std::shared_ptr<CVSlide> openFile(const std::string& filePath) = 0;
21 virtual std::string getFileSpecs() const = 0;
22 };
23}
24
25#endif
Definition: exceptions.hpp:12