44 static bool test(
const double testDuration);
This class solves assignment problems using the Hungarian/Kuhn-Munkres algorithm.
Definition AssignmentSolver.h:50
Matrix CostMatrix
The type of the cost matrix.
Definition AssignmentSolver.h:54
IndexPairs32 Assignments
An alias for a vector of index pairs.
Definition AssignmentSolver.h:60
This class implements a generator for random numbers.
Definition RandomGenerator.h:42
This class implements tests for the AssignmentSolver class.
Definition TestAssignmentSolver.h:36
static bool testSolve(const double testDuration)
Test for AssignmentSolver::solve().
static bool validateSolve(const CostMatrix &costMatrix, const Assignments &assignments)
Validates the result of solve() by checking:
static bool createRandomValidCostMatrix(RandomGenerator &randomGenerator, const size_t rows, const size_t columns, const Scalar minimumCost, const Scalar maximumCost, CostMatrix &costMatrix)
Creates a random valid cost matrix with specified dimensions and cost range.
static bool test(const double testDuration)
Tests the AssignmentSolver functions.
float Scalar
Definition of a scalar type.
Definition Math.h:129
Namespace of the CV Detector Bullseyes Test library.
Definition TestAssignmentSolver.h:29
Namespace of the CV Detector Test library.
Definition LineDetectorHough.h:28
Namespace of the CV Test library.
Definition LineDetectorHough.h:28
Namespace of the Test library.
Definition LineDetectorHough.h:28
The namespace covering the entire Ocean framework.
Definition Accessor.h:15