Merge pull request #508 from tharunkalwa:patch-1

pull/521/head
Alexander Alekhin 9 years ago
commit c53633a7bc
  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();
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;
}

Loading…
Cancel
Save