#include <munkres.h>
Definition at line 17 of file munkres.h.
◆ coords
◆ matrix_type
◆ result_type
◆ vec_type
◆ markertype
◆ munkres()
◆ augment_path()
void munkres::augment_path |
( |
const std::vector< coords > & |
path | ) |
|
|
private |
Definition at line 183 of file munkres.cxx.
184 for(
unsigned int i = 0;
i<
p.size();++
i){
185 const int row =
p[
i].first;
186 const int col =
p[
i].second;
◆ erase_primes_and_covers()
void munkres::erase_primes_and_covers |
( |
| ) |
|
|
private |
◆ find_a_zero()
void munkres::find_a_zero |
( |
int & |
row, |
|
|
int & |
col |
|
) |
| |
|
private |
◆ find_in_col()
◆ find_in_row()
◆ find_min_uncov()
double munkres::find_min_uncov |
( |
| ) |
|
|
private |
◆ printcosts()
void munkres::printcosts |
( |
| ) |
|
|
inline |
◆ printmask()
void munkres::printmask |
( |
| ) |
|
|
inlineprivate |
◆ printmatrix()
Definition at line 275 of file munkres.cxx.
276 boost::io::ios_all_saver ias(std::cout);
277 std::cout << std::setw(5) << std::setprecision(3) <<
"cov|";
279 std::cout << std::setw(7) << std::setprecision(3) << (
m_colIsCovered[
col] ?
"+|" :
"|");
280 } std::cout << std::endl;
283 std::cout << std::setw(5) << std::setprecision(3) << (
m_rowIsCovered[
row] ?
"+ |" :
"|");
285 std::cout << std::setw(5) << std::setprecision(3) <<
m[
row][
col];
288 else std::cout <<
" ";
290 } std::cout << std::endl;
◆ run()
Definition at line 20 of file munkres.cxx.
26 std::cout <<
"doing step " <<
m_step << std::endl;
54 if(
debug) std::cout <<
"done running munkres algorithm: " << std::endl;
◆ step_five()
void munkres::step_five |
( |
| ) |
|
|
private |
Definition at line 206 of file munkres.cxx.
216 std::vector<coords>
path;
223 while(!done &&
n<4){
n++;
225 if(starred0atrow > -1){
◆ step_four()
void munkres::step_four |
( |
| ) |
|
|
private |
Definition at line 149 of file munkres.cxx.
170 if(starred0atcol != -1){
◆ step_one()
void munkres::step_one |
( |
| ) |
|
|
private |
◆ step_six()
void munkres::step_six |
( |
| ) |
|
|
private |
◆ step_three()
void munkres::step_three |
( |
| ) |
|
|
private |
◆ step_two()
void munkres::step_two |
( |
| ) |
|
|
private |
◆ m_colIsCovered
std::vector<bool> munkres::m_colIsCovered |
|
private |
◆ m_costmatrix
◆ m_costs_orig
◆ m_dim
◆ m_maskmatrix
◆ m_rowIsCovered
std::vector<bool> munkres::m_rowIsCovered |
|
private |
◆ m_step
The documentation for this class was generated from the following files: