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
c3e9d0dd
Commit
c3e9d0dd
authored
Jul 15, 2011
by
Evgeniy Kozinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed parser bug.
fixed TBB version in LatentSVM. example works ok.
parent
a9508d2f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
lsvmparser.cpp
modules/objdetect/src/lsvmparser.cpp
+3
-3
matching.cpp
modules/objdetect/src/matching.cpp
+1
-1
No files found.
modules/objdetect/src/lsvmparser.cpp
View file @
c3e9d0dd
...
...
@@ -671,11 +671,11 @@ void parserModel(FILE * xmlf, CvLSVMFilterObject *** model, int *last, int *max,
*
b
=
bb
;
*
count
=
N_comp
+
1
;
}
else
{
cmp
=
(
int
*
)
malloc
(
sizeof
(
int
)
*
(
N_comp
+
1
));
cmp
=
(
int
*
)
malloc
(
sizeof
(
int
)
*
(
N_comp
+
1
));
bb
=
(
float
*
)
malloc
(
sizeof
(
float
)
*
(
N_comp
+
1
));
for
(
ii
=
0
;
ii
<
N_comp
;
ii
++
){
cmp
[
i
]
=
(
*
comp
)[
ii
];
bb
[
i
]
=
(
*
b
)[
ii
];
cmp
[
i
i
]
=
(
*
comp
)[
ii
];
bb
[
i
i
]
=
(
*
b
)[
ii
];
}
free
(
*
comp
);
free
(
*
b
);
...
...
modules/objdetect/src/matching.cpp
View file @
c3e9d0dd
...
...
@@ -1575,7 +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
->
numLevels
;
numLevels
=
H
->
numLevels
-
LAMBDA
;
kLevels
=
(
int
*
)
malloc
(
sizeof
(
int
)
*
threadsNum
);
procLevels
=
(
int
**
)
malloc
(
sizeof
(
int
*
)
*
threadsNum
);
computeBorderSize
(
maxXBorder
,
maxYBorder
,
&
bx
,
&
by
);
...
...
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