CLabelMap Class Reference

A simple class to add loadind and storeing to a map of labels. More...

#include <mia/core/labelmap.hh>

Inherits map< size_t, size_t >, and map< unsigned int, unsigned int >.

Public Member Functions

 CLabelMap ()=default
 
 CLabelMap (const CLabelMap &)=default
 standard copy construtor More...
 
 CLabelMap (std::istream &is)
 
 CLabelMap ()
 
 CLabelMap (const std::string &in_fname)
 
void save (std::ostream &os)
 
bool save (const std::string &out_fname) const
 

Detailed Description

A simple class to add loadind and storeing to a map of labels.

A map to change labels.

This class implements a mapping to change labels stemming from out-of-core region growing.

Definition at line 36 of file core/labelmap.hh.

Constructor & Destructor Documentation

◆ CLabelMap() [1/5]

CLabelMap::CLabelMap ( )
default

◆ CLabelMap() [2/5]

CLabelMap::CLabelMap ( const CLabelMap )
default

standard copy construtor

◆ CLabelMap() [3/5]

CLabelMap::CLabelMap ( std::istream &  is)

Constructor to load the map from a file

Parameters
isinput stream

◆ CLabelMap() [4/5]

CLabelMap::CLabelMap ( )

◆ CLabelMap() [5/5]

CLabelMap::CLabelMap ( const std::string &  in_fname)

Constructthe label map by reading from a file simple text file

Parameters
in_fnameinput file name

Member Function Documentation

◆ save() [1/2]

void CLabelMap::save ( std::ostream &  os)

Function to save the map to a file

Parameters
osoutput stream
Returns
true if successfull and false otherwise

◆ save() [2/2]

bool CLabelMap::save ( const std::string &  out_fname) const

Save the label map to a file

Parameters
out_fnameoutput file name
Returns
true if saving was successfull

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