support_openslide.h
Go to the documentation of this file.
1 /*
2 * ECVL - European Computer Vision Library
3 * Version: 0.3.4
4 * copyright (c) 2021, Università degli Studi di Modena e Reggio Emilia (UNIMORE), AImageLab
5 * Authors:
6 * Costantino Grana (costantino.grana@unimore.it)
7 * Federico Bolelli (federico.bolelli@unimore.it)
8 * Michele Cancilla (michele.cancilla@unimore.it)
9 * Laura Canalini (laura.canalini@unimore.it)
10 * Stefano Allegretti (stefano.allegretti@unimore.it)
11 * All rights reserved.
12 */
13 
14 #ifndef SUPPORT_OPENSLIDE_H_
15 #define SUPPORT_OPENSLIDE_H_
16 
17 #include "ecvl/core/filesystem.h"
18 #include "ecvl/core/image.h"
19 
20 namespace ecvl
21 {
38 extern bool OpenSlideRead(const ecvl::filesystem::path& filename, Image& dst, const int level, const std::vector<int>& dims);
39 
48 extern bool OpenSlideGetLevels(const ecvl::filesystem::path& filename, std::vector<std::array<int, 2>>& levels);
49 
53 } // namespace ecvl
54 
55 #endif // SUPPORT_OPENSLIDE_H_
bool OpenSlideGetLevels(const ecvl::filesystem::path &filename, std::vector< std::array< int, 2 >> &levels)
Get width and height for each level of a whole-slide image.
bool OpenSlideRead(const ecvl::filesystem::path &filename, Image &dst, const int level, const std::vector< int > &dims)
Loads a region of a whole-slide image file.