Lines Matching refs:costMatrix
494 … cv::Mat &costMatrix, cv::Ptr<cv::HistogramCostExtractor> &comparer) const in buildCostMatrix() argument
496 comparer->buildCostMatrix(descriptors1, descriptors2, costMatrix); in buildCostMatrix()
499 void SCDMatcher::hungarian(cv::Mat &costMatrix, std::vector<cv::DMatch> &outMatches, std::vector<in… in hungarian() argument
502 std::vector<int> free(costMatrix.rows, 0), collist(costMatrix.rows, 0); in hungarian()
503 std::vector<int> matches(costMatrix.rows, 0), colsol(costMatrix.rows), rowsol(costMatrix.rows); in hungarian()
504 std::vector<float> d(costMatrix.rows), pred(costMatrix.rows), v(costMatrix.rows); in hungarian()
513 for (j = costMatrix.rows-1; j >= 0; j--) in hungarian()
516 min = costMatrix.at<float>(0,j); in hungarian()
518 for (i = 1; i < costMatrix.rows; i++) in hungarian()
519 if (costMatrix.at<float>(i,j) < min) in hungarian()
521 min = costMatrix.at<float>(i,j); in hungarian()
538 for (i=0; i<costMatrix.rows; i++) in hungarian()
550 for (j=0; j<costMatrix.rows; j++) in hungarian()
554 if (costMatrix.at<float>(i,j)-v[j] < min) in hungarian()
556 min=costMatrix.at<float>(i,j)-v[j]; in hungarian()
576 umin = costMatrix.at<float>(i,0)-v[0]; in hungarian()
579 for (j=1; j<costMatrix.rows; j++) in hungarian()
581 h = costMatrix.at<float>(i,j)-v[j]; in hungarian()
637 for (j = 0; j < costMatrix.rows; j++) in hungarian()
639 d[j] = costMatrix.at<float>(freerow,j) - v[j]; in hungarian()
653 for (k = up; k < costMatrix.rows; k++) in hungarian()
685 h = costMatrix.at<float>(i,j1)-v[j1]-min; in hungarian()
687 for (k = up; k < costMatrix.rows; k++) in hungarian()
690 v2 = costMatrix.at<float>(i,j) - v[j] - h; in hungarian()
734 cv::Mat trueCostMatrix(costMatrix, cv::Rect(0,0,sizeScd1, sizeScd2)); in hungarian()
756 for (i=0;i<costMatrix.cols;i++) in hungarian()
758 … cv::DMatch singleMatch(colsol[i],i,costMatrix.at<float>(colsol[i],i));//queryIdx,trainIdx,distance in hungarian()