SlideIO 2.0.0
Open-source library for reading of medical images
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
slideio::Slide Class Reference

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< ScenegetScene (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< ScenegetAuxImage (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< SlideopenSlide (const std::string &path, const std::string &driver)
 The function returns a smart pointer to an object of Slide class. More...
 

Detailed Description

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.

Member Function Documentation

◆ getAuxImage()

std::shared_ptr< Scene > Slide::getAuxImage ( const std::string &  sceneName) const
virtual

Returns a Scene object that represents an auxiliary image with the supplied name.

Parameters
sceneName: name of the auxiliary image. It must be contained in the list returned by getAuxImageNames method.

◆ getAuxImageNames()

const std::list< std::string > & Slide::getAuxImageNames ( ) const

The method returns list of names of auxiliary images contained in the slide.

Default: empty list.

◆ getRawMetadata()

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.

Friends And Related Function Documentation

◆ openSlide

SLIDEIO_EXPORTS std::shared_ptr< Slide > openSlide ( const std::string &  path,
const std::string &  driver 
)
friend

The function returns a smart pointer to an object of Slide class.

Function for opening a slide file.

Parameters
path: path of the file/folder that contains the slide.
driver: id of image driver

The documentation for this class was generated from the following files: