SlideIO 2.9.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
phtiffscene.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#include "slideio/drivers/svs/svstiledscene.hpp"
6#include "slideio/drivers/svs/phtmetadata.hpp"
7
8namespace slideio
9{
10 // The whole slide image of a philips tiff. Everything but the reading of the philips
11 // metadata is the shared tiff behaviour of SVSTiledScene.
12 class SLIDEIO_SVS_EXPORTS PHTIFFTiledScene : public SVSTiledScene
13 {
14 public:
15 static std::shared_ptr<PHTIFFTiledScene> create(const std::string& filePath,
16 libtiff::TIFF* hFile, const std::string& name,
17 const std::vector<slideio::TiffDirectory>& dirs, const PHTMetadata& metadata);
18 protected:
19 PHTIFFTiledScene(const std::string& filePath, libtiff::TIFF* hFile,
20 const std::string& name, const std::vector<slideio::TiffDirectory>& dirs,
21 const PHTMetadata& metadata);
22 void processImageDescription() override;
23 private:
24 // A copy, not a reference: the metadata is parsed once by PHTIFFSlide::init into a
25 // local variable, and this scene outlives that call, so a reference would dangle.
26 PHTMetadata m_metadata;
27 };
28}
Definition: exceptions.hpp:15