fixed computation of feature vectors in self-similarity descriptor (max->min)

pull/13383/head
Vadim Pisarevsky 15 years ago
parent f69514eef7
commit b481f12de8
  1. 2
      modules/contrib/src/selfsimilarity.cpp

@ -209,7 +209,7 @@ void SelfSimDescriptor::compute(const Mat& img, vector<float>& descriptors, Size
for( x = 0 ; x < ssd.cols; x++ )
{
int index = mappingMaskPtr[x];
feature[index] = std::max(feature[index], ssdPtr[x]);
feature[index] = std::min(feature[index], ssdPtr[x]);
}
}

Loading…
Cancel
Save