|
My Project
|
A simple class to add loadind and storeing to a map of labels. More...
#include <mia/core/labelmap.hh>
Inherits std::map< unsigned int, unsigned int >, and std::map< size_t, size_t >.
Public Member Functions | |
| CLabelMap () | |
| CLabelMap ()=default | |
| CLabelMap (const CLabelMap &)=default | |
| standard copy construtor | |
| CLabelMap (const std::string &in_fname) | |
| CLabelMap (std::istream &is) | |
| bool | save (const std::string &out_fname) const |
| void | save (std::ostream &os) |
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.
|
default |
Referenced by CLabelMap().
|
default |
standard copy construtor
References CLabelMap().
| CLabelMap::CLabelMap | ( | std::istream & | is | ) |
Constructor to load the map from a file
| is | input stream |
| CLabelMap::CLabelMap | ( | ) |
| CLabelMap::CLabelMap | ( | const std::string & | in_fname | ) |
Constructthe label map by reading from a file simple text file
| in_fname | input file name |
| bool CLabelMap::save | ( | const std::string & | out_fname | ) | const |
Save the label map to a file
| out_fname | output file name |
| void CLabelMap::save | ( | std::ostream & | os | ) |
Function to save the map to a file
| os | output stream |