fix negative confidence bug

pull/158/head
marina.kolpakova 12 years ago
parent 27eb2e27db
commit e6eb1b99e1
  1. 2
      modules/gpu/src/cuda/isf-sc.cu

@ -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

Loading…
Cancel
Save