提交 08f1f576 编写于 作者: V Vadim Pisarevsky

ok. enabled TBB in LatentSVM, but need to check if it works

上级 36ba3d69
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
#include "_lsvm_fft.h" #include "_lsvm_fft.h"
#include "_lsvm_routine.h" #include "_lsvm_routine.h"
#undef HAVE_TBB
#ifdef HAVE_TBB #ifdef HAVE_TBB
#include "_lsvm_tbbversion.h" #include "_lsvm_tbbversion.h"
#endif #endif
...@@ -358,8 +356,6 @@ int thresholdFunctionalScore(const CvLSVMFilterObject **all_F, int n, ...@@ -358,8 +356,6 @@ int thresholdFunctionalScore(const CvLSVMFilterObject **all_F, int n,
CvPoint **points, int **levels, int *kPoints, CvPoint **points, int **levels, int *kPoints,
CvPoint ***partsDisplacement); CvPoint ***partsDisplacement);
#undef HAVE_TBB
#ifdef HAVE_TBB #ifdef HAVE_TBB
/* /*
// int tbbThresholdFunctionalScore(const CvLSVMFilterObject **all_F, int n, // int tbbThresholdFunctionalScore(const CvLSVMFilterObject **all_F, int n,
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
#include "_latentsvm.h" #include "_latentsvm.h"
#include "_lsvm_matching.h" #include "_lsvm_matching.h"
#undef HAVE_TBB
/* /*
// Transformation filter displacement from the block space // Transformation filter displacement from the block space
// to the space of pixels at the initial image // to the space of pixels at the initial image
......
#include "precomp.hpp" #include "precomp.hpp"
#undef HAVE_TBB
#ifdef HAVE_TBB #ifdef HAVE_TBB
#include "_lsvm_tbbversion.h" #include "_lsvm_tbbversion.h"
...@@ -48,7 +46,7 @@ public: ...@@ -48,7 +46,7 @@ public:
for (i = 0; i < kLevels; i++) for (i = 0; i < kLevels; i++)
{ {
level = procLevels[i]; level = procLevels[i];
partsLevel = level - H->lambda; partsLevel = level - LAMBDA;//H->lambda;
res = thresholdFunctionalScoreFixedLevel( res = thresholdFunctionalScoreFixedLevel(
filters, n, H, level, b, filters, n, H, level, b,
maxXBorder, maxYBorder, scoreThreshold, &(score[partsLevel]), maxXBorder, maxYBorder, scoreThreshold, &(score[partsLevel]),
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
#include "_lsvm_matching.h" #include "_lsvm_matching.h"
#include <stdio.h> #include <stdio.h>
#undef HAVE_TBB
#ifndef max #ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b)) #define max(a,b) (((a) > (b)) ? (a) : (b))
#endif #endif
...@@ -1577,8 +1575,7 @@ int tbbThresholdFunctionalScore(const CvLSVMFilterObject **all_F, int n, ...@@ -1577,8 +1575,7 @@ int tbbThresholdFunctionalScore(const CvLSVMFilterObject **all_F, int n,
// Computation the number of levels for seaching object, // Computation the number of levels for seaching object,
// first lambda-levels are used for computation values // first lambda-levels are used for computation values
// of score function for each position of root filter // of score function for each position of root filter
numLevels = H->countLevel - H->lambda; numLevels = H->numLevels;
kLevels = (int *)malloc(sizeof(int) * threadsNum); kLevels = (int *)malloc(sizeof(int) * threadsNum);
procLevels = (int **)malloc(sizeof(int*) * threadsNum); procLevels = (int **)malloc(sizeof(int*) * threadsNum);
computeBorderSize(maxXBorder, maxYBorder, &bx, &by); computeBorderSize(maxXBorder, maxYBorder, &bx, &by);
...@@ -1648,7 +1645,7 @@ int tbbThresholdFunctionalScore(const CvLSVMFilterObject **all_F, int n, ...@@ -1648,7 +1645,7 @@ int tbbThresholdFunctionalScore(const CvLSVMFilterObject **all_F, int n,
for (i = 0; i < numLevels; i++) for (i = 0; i < numLevels; i++)
{ {
// Computation the number of level // Computation the number of level
level = i + H->lambda; level = i + LAMBDA;//H->lambda;
// Addition a set of points // Addition a set of points
f += tmpKPoints[i]; f += tmpKPoints[i];
......
...@@ -42,8 +42,6 @@ ...@@ -42,8 +42,6 @@
#include "test_precomp.hpp" #include "test_precomp.hpp"
#undef HAVE_TBB
#include <string> #include <string>
#ifdef HAVE_CVCONFIG_H #ifdef HAVE_CVCONFIG_H
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册