Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
dd48e062
Commit
dd48e062
authored
Jun 30, 2015
by
Vladimir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing Warnings #3
parent
6da37048
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
tldDetector.cpp
modules/tracking/src/tldDetector.cpp
+14
-14
No files found.
modules/tracking/src/tldDetector.cpp
View file @
dd48e062
...
...
@@ -342,12 +342,12 @@ namespace cv
double
TLDDetector
::
ocl_Sc
(
const
Mat_
<
uchar
>&
patch
)
{
int64
e1
,
e2
,
e3
,
e4
;
float
t
;
e1
=
getTickCount
();
//
int64 e1, e2, e3, e4;
//
float t;
//
e1 = getTickCount();
double
splus
=
0.0
,
sminus
=
0.0
;
e3
=
getTickCount
();
//
e3 = getTickCount();
UMat
devPatch
=
patch
.
getUMat
(
ACCESS_READ
,
USAGE_ALLOCATE_DEVICE_MEMORY
);
UMat
devPositiveSamples
=
posExp
->
getUMat
(
ACCESS_READ
,
USAGE_ALLOCATE_DEVICE_MEMORY
);
...
...
@@ -370,23 +370,23 @@ namespace cv
posNum
,
negNum
);
e4
=
getTickCount
();
t
=
(
e4
-
e3
)
/
getTickFrequency
()
*
1000.0
;
//
e4 = getTickCount();
//
t = (e4 - e3) / getTickFrequency()*1000.0;
//printf("Mem Cpy GPU: %f\n", t);
size_t
globSize
=
1000
;
size_t
localSize
=
128
;
e3
=
getTickCount
();
//
e3 = getTickCount();
if
(
!
k
.
run
(
1
,
&
globSize
,
&
localSize
,
true
))
printf
(
"Kernel Run Error!!!"
);
e4
=
getTickCount
();
t
=
(
e4
-
e3
)
/
getTickFrequency
()
*
1000.0
;
//
e4 = getTickCount();
//
t = (e4 - e3) / getTickFrequency()*1000.0;
//printf("Kernel Run GPU: %f\n", t);
e3
=
getTickCount
();
//
e3 = getTickCount();
Mat
resNCC
=
devNCC
.
getMat
(
ACCESS_READ
);
e4
=
getTickCount
();
t
=
(
e4
-
e3
)
/
getTickFrequency
()
*
1000.0
;
//
e4 = getTickCount();
//
t = (e4 - e3) / getTickFrequency()*1000.0;
//printf("Read Mem GPU: %f\n", t);
////Compare
...
...
@@ -411,8 +411,8 @@ namespace cv
for
(
int
i
=
0
;
i
<
*
negNum
;
i
++
)
sminus
=
std
::
max
(
sminus
,
0.5
*
(
resNCC
.
at
<
float
>
(
i
+
500
)
+
1.0
));
e2
=
getTickCount
();
t
=
(
e2
-
e1
)
/
getTickFrequency
()
*
1000.0
;
//
e2 = getTickCount();
//
t = (e2 - e1) / getTickFrequency()*1000.0;
//printf("Sc GPU: %f\n\n", t);
if
(
splus
+
sminus
==
0.0
)
...
...
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