Skip to content

Commit e1798d9

Browse files
committed
Remove unnecessary thread count check
1 parent 48014e7 commit e1798d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/ComponentLabeling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ void myCompLabelerGroup::set( int nThreads, Mat binIm )
482482
delete []labelers;
483483
}
484484
tIds = new pthread_t[nThreads];
485-
labelers = new myCompLabeler*[nThreads > 0? nThreads : 1];
485+
labelers = new myCompLabeler*[nThreads];
486486
Size sz = binIm.size();
487487
int numPx = sz.width*sz.width;
488488
int i=0;

0 commit comments

Comments
 (0)