From 48e0fc9b89667b8179c9a35289f369d46f811f47 Mon Sep 17 00:00:00 2001 From: tharunkalwa Date: Thu, 7 Jan 2016 16:57:53 +0530 Subject: [PATCH] Update objectnessBING.cpp The rectangle at top is not having maximum objectness value. --- modules/saliency/src/BING/objectnessBING.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/saliency/src/BING/objectnessBING.cpp b/modules/saliency/src/BING/objectnessBING.cpp index d6643bab5..cc3d8f9c2 100644 --- a/modules/saliency/src/BING/objectnessBING.cpp +++ b/modules/saliency/src/BING/objectnessBING.cpp @@ -475,7 +475,7 @@ bool ObjectnessBING::computeSaliencyImpl( InputArray image, OutputArray objectne unsigned long int valIdxesSize = (unsigned long int) finalBoxes.getvalIdxes().size(); objectnessValues.resize( valIdxesSize ); for ( uint i = 0; i < valIdxesSize; i++ ) - objectnessValues[i] = finalBoxes.getvalIdxes()[i].first; + objectnessValues[finalBoxes.getvalIdxes()[i].second] = finalBoxes.getvalIdxes()[i].first; return true; }