SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
dcmimagedriver.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_dcmimagedriver_HPP
5#define OPENCV_slideio_dcmimagedriver_HPP
6
7#include "slideio/drivers/dcm/dcm_api_def.hpp"
8#include "slideio/core/imagedriver.hpp"
9#include "slideio/core/cvslide.hpp"
10#include <opencv2/core.hpp>
11#include <string>
12
13#if defined(_MSC_VER)
14#pragma warning( push )
15#pragma warning(disable: 4251)
16#endif
17
18namespace slideio
19{
20 class SLIDEIO_DCM_EXPORTS DCMImageDriver : public slideio::ImageDriver
21 {
22 public:
23 DCMImageDriver();
24 ~DCMImageDriver();
25 std::string getID() const override;
26 std::shared_ptr<CVSlide> openFile(const std::string& filePath) override;
27 std::string getFileSpecs() const override;
28 static void initializeDCMTK();
29 static void clieanUpDCMTK();
30 bool canOpenFile(const std::string& filePath) const override;
31 };
32}
33
34#if defined(_MSC_VER)
35#pragma warning( pop )
36#endif
37
38#endif
Definition: exceptions.hpp:12