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
d45f9ef8
Commit
d45f9ef8
authored
May 23, 2013
by
yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Linux build errors
parent
a223b562
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pyrlk.cpp
modules/ocl/src/pyrlk.cpp
+4
-4
No files found.
modules/ocl/src/pyrlk.cpp
View file @
d45f9ef8
...
...
@@ -15,8 +15,8 @@
// Third party copyrights are property of their respective owners.
//
// @Authors
//
Dachuan Zhao, dachuan@multicorewareinc.com
//
Yao Wang, bitwangyaoyao@gmail.com
//
Dachuan Zhao, dachuan@multicorewareinc.com
//
Yao Wang, bitwangyaoyao@gmail.com
// Nathan, liujun@multicorewareinc.com
//
// Redistribution and use in source and binary forms, with or without modification,
...
...
@@ -65,7 +65,7 @@ struct dim3
unsigned
int
x
,
y
,
z
;
};
void
calcPatchSize
(
cv
::
Size
winSize
,
int
cn
,
dim3
&
block
,
dim3
&
patch
,
bool
isDeviceArch11
)
static
void
calcPatchSize
(
cv
::
Size
winSize
,
int
cn
,
dim3
&
block
,
dim3
&
patch
,
bool
isDeviceArch11
)
{
winSize
.
width
*=
cn
;
...
...
@@ -140,7 +140,7 @@ static void lkSparse_run(oclMat &I, oclMat &J,
idxStr
<<
kernelName
<<
"_C"
<<
I
.
oclchannels
()
<<
"_D"
<<
I
.
depth
();
cl_kernel
kernel
=
openCLGetKernelFromSource
(
clCxt
,
&
pyrlk
,
idxStr
.
str
());
size_t
wave_size
=
queryDeviceInfo
<
WAVEFRONT_SIZE
,
size_
t
>
(
kernel
);
int
wave_size
=
queryDeviceInfo
<
WAVEFRONT_SIZE
,
in
t
>
(
kernel
);
static
char
opt
[
16
]
=
{
0
};
sprintf
(
opt
,
" -D WAVE_SIZE=%d"
,
wave_size
);
...
...
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