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 >.
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.
◆ CLabelMap() [1/5]
◆ CLabelMap() [2/5]
◆ CLabelMap() [3/5]
CLabelMap::CLabelMap |
( |
std::istream & |
is | ) |
|
Constructor to load the map from a file
- Parameters
-
◆ CLabelMap() [4/5]
◆ CLabelMap() [5/5]
CLabelMap::CLabelMap |
( |
const std::string & |
in_fname | ) |
|
Constructthe label map by reading from a file simple text file
- Parameters
-
◆ save() [1/2]
void CLabelMap::save |
( |
std::ostream & |
os | ) |
|
Function to save the map to a file
- Parameters
-
- 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_fname | output file name |
- Returns
- true if saving was successfull
The documentation for this class was generated from the following files: