From 16a3773a34ec5098744271260ce70f69c0503d23 Mon Sep 17 00:00:00 2001 From: yigitsoy Date: Tue, 3 Nov 2015 15:37:49 +0100 Subject: [PATCH] Fix inlier assignment in Hungarian algorithm While checking whether a match is a real match, the index of the corresponding column (row) for a row (column) is checked. The limit should be the number of the real columns (rows) for a given row (column). --- modules/shape/src/sc_dis.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/shape/src/sc_dis.cpp b/modules/shape/src/sc_dis.cpp index 3f11e8b1bb..815c30ffc6 100644 --- a/modules/shape/src/sc_dis.cpp +++ b/modules/shape/src/sc_dis.cpp @@ -763,7 +763,7 @@ void SCDMatcher::hungarian(cv::Mat &costMatrix, std::vector &outMatc inliers1.reserve(sizeScd1); for (size_t kc = 0; kc &outMatc inliers2.reserve(sizeScd2); for (size_t kc = 0; kc