fix cascade classifier GFF NMS for empty candidates vector
This commit is contained in:
parent
68d04d28b6
commit
5460cee9e9
@ -185,6 +185,7 @@ namespace cv { namespace gpu { namespace device
|
||||
|
||||
void connectedConmonents(PtrStepSz<int4> candidates, int ncandidates, PtrStepSz<int4> objects, int groupThreshold, float grouping_eps, unsigned int* nclasses)
|
||||
{
|
||||
if (!ncandidates) return;
|
||||
int block = ncandidates;
|
||||
int smem = block * ( sizeof(int) + sizeof(int4) );
|
||||
disjoin<InSameComponint><<<1, block, smem>>>(candidates, objects, ncandidates, groupThreshold, grouping_eps, nclasses);
|
||||
|
Loading…
x
Reference in New Issue
Block a user