plugin
0.1.0
|
The KuhnMunkres class. More...
#include <kuhn_munkres.hpp>
Public Member Functions | |
KuhnMunkres (bool greedy=false) | |
Initializes the class for assignment problem solving. More... | |
std::vector< size_t > | Solve (const cv::Mat &dissimilarity_matrix) |
Solves the assignment problem for given dissimilarity matrix. It returns a vector that where each element is a column index for corresponding row (e.g. result[0] stores optimal column index for very first row in the dissimilarity matrix). More... | |
The KuhnMunkres class.
Solves the assignment problem.
|
explicit |
Initializes the class for assignment problem solving.
[in] | greedy | If a faster greedy matching algorithm should be used. |
std::vector< size_t > KuhnMunkres::Solve | ( | const cv::Mat & | dissimilarity_matrix | ) |
Solves the assignment problem for given dissimilarity matrix. It returns a vector that where each element is a column index for corresponding row (e.g. result[0] stores optimal column index for very first row in the dissimilarity matrix).
dissimilarity_matrix | CV_32F dissimilarity matrix. |