SlideIO 2.0.0
Open-source library for reading of medical images
|
Slide class is an interface for accessing the information on a medical slide. More...
#include <slide.hpp>
Public Member Functions | |
int | getNumScenes () const |
The method returns number of Scene objects contained in the slide. | |
std::string | getFilePath () const |
The method returns a string which represents file path of the slide. | |
std::shared_ptr< Scene > | getScene (int index) const |
The method returns a Scene object by the scene index. | |
const std::string & | getRawMetadata () const |
The method returns a string containing serialized metadata of the slide. More... | |
const std::list< std::string > & | getAuxImageNames () const |
The method returns list of names of auxiliary images contained in the slide. More... | |
virtual int | getNumAuxImages () const |
The method returns number of auxiliary images contained in the slide. | |
virtual std::shared_ptr< Scene > | getAuxImage (const std::string &sceneName) const |
Returns a Scene object that represents an auxiliary image with the supplied name. More... | |
Friends | |
SLIDEIO_EXPORTS std::shared_ptr< Slide > | openSlide (const std::string &path, const std::string &driver) |
The function returns a smart pointer to an object of Slide class. More... | |
Slide class is an interface for accessing the information on a medical slide.
Slide class is an interface for accessing the information on a medical Slide class represents a medical slide. A medical slide is normally a is represented by a single file or folder. A slide may contain multiple images represented by the Scene class. Additionally a slide may contain a number of auxiliary images like labels, macro, etc. Objects of the class can be obtained by calling of slideio::openSlide() global function.
|
virtual |
Returns a Scene object that represents an auxiliary image with the supplied name.
sceneName | : name of the auxiliary image. It must be contained in the list returned by getAuxImageNames method. |
const std::list< std::string > & Slide::getAuxImageNames | ( | ) | const |
The method returns list of names of auxiliary images contained in the slide.
Default: empty list.
const std::string & Slide::getRawMetadata | ( | ) | const |
The method returns a string containing serialized metadata of the slide.
Content of the string depends on image driver and may be plain text, xml or json formatted string. Default value is an empty string.
|
friend |
The function returns a smart pointer to an object of Slide class.
Function for opening a slide file.
path | : path of the file/folder that contains the slide. |
driver | : id of image driver |