fix negative confidence bug

This commit is contained in:
marina.kolpakova 2012-11-10 00:48:37 +04:00
parent 27eb2e27db
commit e6eb1b99e1

View File

@ -229,7 +229,7 @@ namespace icf {
if(__any((confidence <= stages[(st + threadIdx.x)]))) st += 2048;
}
if(st == stEnd && !threadIdx.x)
if(!threadIdx.x && st == stEnd && ((confidence - FLT_EPSILON) >= 0))
{
int idx = atomicInc(ctr, ndetections);
// store detection