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#pragma once
5
6#include "slideio/core/slideio_core_def.hpp"
7#include "slideio/core/cvslide.hpp"
8#include <opencv2/core.hpp>
9#include <string>
10
11namespace slideio
12{
13 class SLIDEIO_CORE_EXPORTS ImageDriver
14 {
15 public:
16 virtual ~ImageDriver(){}
17 virtual std::string getID() const = 0;
18 virtual bool canOpenFile(const std::string& filePath) const;
19 virtual std::shared_ptr<CVSlide> openFile(const std::string& filePath) = 0;
20 virtual std::string getFileSpecs() const = 0;
21 };
22}
Definition: exceptions.hpp:15