Update objectnessBING.cpp

The rectangle at top is not having maximum objectness value.
pull/508/head
tharunkalwa 9 years ago
parent 10ad8a91de
commit 48e0fc9b89
  1. 2
      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(); unsigned long int valIdxesSize = (unsigned long int) finalBoxes.getvalIdxes().size();
objectnessValues.resize( valIdxesSize ); objectnessValues.resize( valIdxesSize );
for ( uint i = 0; i < valIdxesSize; i++ ) for ( uint i = 0; i < valIdxesSize; i++ )
objectnessValues[i] = finalBoxes.getvalIdxes()[i].first; objectnessValues[finalBoxes.getvalIdxes()[i].second] = finalBoxes.getvalIdxes()[i].first;
return true; return true;
} }

Loading…
Cancel
Save