Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
08f1f576
Commit
08f1f576
authored
Jul 14, 2011
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ok. enabled TBB in LatentSVM, but need to check if it works
parent
36ba3d69
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
16 deletions
+3
-16
_lsvm_matching.h
modules/objdetect/src/_lsvm_matching.h
+0
-4
latentsvm.cpp
modules/objdetect/src/latentsvm.cpp
+0
-2
lsvmtbbversion.cpp
modules/objdetect/src/lsvmtbbversion.cpp
+1
-3
matching.cpp
modules/objdetect/src/matching.cpp
+2
-5
test_latentsvmdetector.cpp
modules/objdetect/test/test_latentsvmdetector.cpp
+0
-2
No files found.
modules/objdetect/src/_lsvm_matching.h
View file @
08f1f576
...
...
@@ -11,8 +11,6 @@
#include "_lsvm_fft.h"
#include "_lsvm_routine.h"
#undef HAVE_TBB
#ifdef HAVE_TBB
#include "_lsvm_tbbversion.h"
#endif
...
...
@@ -358,8 +356,6 @@ int thresholdFunctionalScore(const CvLSVMFilterObject **all_F, int n,
CvPoint
**
points
,
int
**
levels
,
int
*
kPoints
,
CvPoint
***
partsDisplacement
);
#undef HAVE_TBB
#ifdef HAVE_TBB
/*
// int tbbThresholdFunctionalScore(const CvLSVMFilterObject **all_F, int n,
...
...
modules/objdetect/src/latentsvm.cpp
View file @
08f1f576
...
...
@@ -2,8 +2,6 @@
#include "_latentsvm.h"
#include "_lsvm_matching.h"
#undef HAVE_TBB
/*
// Transformation filter displacement from the block space
// to the space of pixels at the initial image
...
...
modules/objdetect/src/lsvmtbbversion.cpp
View file @
08f1f576
#include "precomp.hpp"
#undef HAVE_TBB
#ifdef HAVE_TBB
#include "_lsvm_tbbversion.h"
...
...
@@ -48,7 +46,7 @@ public:
for
(
i
=
0
;
i
<
kLevels
;
i
++
)
{
level
=
procLevels
[
i
];
partsLevel
=
level
-
H
->
lambda
;
partsLevel
=
level
-
LAMBDA
;
//
H->lambda;
res
=
thresholdFunctionalScoreFixedLevel
(
filters
,
n
,
H
,
level
,
b
,
maxXBorder
,
maxYBorder
,
scoreThreshold
,
&
(
score
[
partsLevel
]),
...
...
modules/objdetect/src/matching.cpp
View file @
08f1f576
...
...
@@ -2,8 +2,6 @@
#include "_lsvm_matching.h"
#include <stdio.h>
#undef HAVE_TBB
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif
...
...
@@ -1577,8 +1575,7 @@ int tbbThresholdFunctionalScore(const CvLSVMFilterObject **all_F, int n,
// Computation the number of levels for seaching object,
// first lambda-levels are used for computation values
// of score function for each position of root filter
numLevels
=
H
->
countLevel
-
H
->
lambda
;
numLevels
=
H
->
numLevels
;
kLevels
=
(
int
*
)
malloc
(
sizeof
(
int
)
*
threadsNum
);
procLevels
=
(
int
**
)
malloc
(
sizeof
(
int
*
)
*
threadsNum
);
computeBorderSize
(
maxXBorder
,
maxYBorder
,
&
bx
,
&
by
);
...
...
@@ -1648,7 +1645,7 @@ int tbbThresholdFunctionalScore(const CvLSVMFilterObject **all_F, int n,
for
(
i
=
0
;
i
<
numLevels
;
i
++
)
{
// Computation the number of level
level
=
i
+
H
->
lambda
;
level
=
i
+
LAMBDA
;
//
H->lambda;
// Addition a set of points
f
+=
tmpKPoints
[
i
];
...
...
modules/objdetect/test/test_latentsvmdetector.cpp
View file @
08f1f576
...
...
@@ -42,8 +42,6 @@
#include "test_precomp.hpp"
#undef HAVE_TBB
#include <string>
#ifdef HAVE_CVCONFIG_H
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment