Merge doesn't delete already merged person from further evaluation
The merge algorithm doesn't ensure the other person merged doesn't get evaluated anymore. The only manipulation of teh remaining candidates is the following:
int deleteIndex = mPersonStorage.merge(mPrevFeaturePointsIdx[i], j);
// shift index of feature points
for(size_t k = 0; k < mPrevFeaturePointsIdx.size(); ++k)
{
if(mPrevFeaturePointsIdx[k] > deleteIndex)
{
--mPrevFeaturePointsIdx[k];
}
}
found = true;