Commit b481f12d authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

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

parent f69514ee
......@@ -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]);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment