|
|
|
@ -1396,7 +1396,7 @@ static int createSchedule(const CvLSVMFeaturePyramid *H, const CvLSVMFilterObjec |
|
|
|
|
const int n, const int bx, const int by, |
|
|
|
|
const int threadsNum, int *kLevels, int **processingLevels) |
|
|
|
|
{ |
|
|
|
|
int rootFilterDim, sumPartFiltersDim, i, numLevels, dbx, dby, numDotProducts; |
|
|
|
|
int rootFilterDim, sumPartFiltersDim, i, numLevels, dbx, dby; |
|
|
|
|
int j, minValue, argMin, lambda, maxValue, k; |
|
|
|
|
int *dotProd, *weights, *disp; |
|
|
|
|
if (H == NULL || all_F == NULL) |
|
|
|
@ -1420,8 +1420,6 @@ static int createSchedule(const CvLSVMFeaturePyramid *H, const CvLSVMFilterObjec |
|
|
|
|
// of feature map with part filter
|
|
|
|
|
dbx = 2 * bx; |
|
|
|
|
dby = 2 * by; |
|
|
|
|
// Total number of dot products for all levels
|
|
|
|
|
numDotProducts = 0; |
|
|
|
|
lambda = LAMBDA; |
|
|
|
|
for (i = 0; i < numLevels; i++) |
|
|
|
|
{ |
|
|
|
@ -1429,7 +1427,6 @@ static int createSchedule(const CvLSVMFeaturePyramid *H, const CvLSVMFilterObjec |
|
|
|
|
H->pyramid[i + lambda]->sizeY * rootFilterDim + |
|
|
|
|
(H->pyramid[i]->sizeX + dbx) * |
|
|
|
|
(H->pyramid[i]->sizeY + dby) * sumPartFiltersDim; |
|
|
|
|
numDotProducts += dotProd[i]; |
|
|
|
|
} |
|
|
|
|
// Allocation memory for saving dot product number performed by each thread
|
|
|
|
|
weights = (int *)malloc(sizeof(int) * threadsNum); |
|
|
|
|