fixed computation of feature vectors in self-similarity descriptor (max->min)
This commit is contained in:
parent
f69514eef7
commit
b481f12de8
@ -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…
x
Reference in New Issue
Block a user