From db53cec63a583a1f5a7cb0dd34effa8370642aa9 Mon Sep 17 00:00:00 2001 From: Mathieu Labbe Date: Mon, 9 Mar 2015 18:57:29 -0400 Subject: [PATCH] Fixed a bug on Bayes prediction generation (duplicated margins) --- corelib/src/BayesFilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corelib/src/BayesFilter.cpp b/corelib/src/BayesFilter.cpp index aea1b7df..28c80b0c 100644 --- a/corelib/src/BayesFilter.cpp +++ b/corelib/src/BayesFilter.cpp @@ -273,7 +273,7 @@ cv::Mat BayesFilter::generatePrediction(const Memory * memory, const std::vector { if(iter->second == 0) { - idsLoopMargin.push_back(iter->second); + idsLoopMargin.push_back(iter->first); } ++iter; }