LBP features integrated in CascadeClassifier_GPU

This commit is contained in:
marina.kolpakova
2012-07-24 13:51:35 +04:00
parent 2dc93574e1
commit 1b7ad93dc9
5 changed files with 506 additions and 493 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -290,6 +290,7 @@ namespace cv { namespace gpu { namespace device
{
const int block = 128;
int grid = divUp(workAmount, block);
cudaFuncSetCacheConfig(lbp_cascade, cudaFuncCachePreferL1);
Cascade cascade((Stage*)mstages.ptr(), nstages, (ClNode*)mnodes.ptr(), mleaves.ptr(), msubsets.ptr(), (uchar4*)mfeatures.ptr(), subsetSize);
lbp_cascade<<<grid, block>>>(cascade, frameW, frameH, windowW, windowH, initialScale, factor, workAmount, integral.ptr(), integral.step / sizeof(int), objects, classified);
}