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
2045c85a
Commit
2045c85a
authored
Oct 31, 2012
by
NikoKJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a minor bug fix for brute force
parent
78fd99ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
brute_force_matcher.cpp
modules/ocl/src/brute_force_matcher.cpp
+2
-2
initialization.cpp
modules/ocl/src/initialization.cpp
+2
-1
No files found.
modules/ocl/src/brute_force_matcher.cpp
View file @
2045c85a
...
...
@@ -300,7 +300,7 @@ void matchUnrolledCached(const oclMat &query, const oclMat &train, float maxDist
args
.
push_back
(
make_pair
(
sizeof
(
cl_int
),
(
void
*
)
&
query
.
cols
));
args
.
push_back
(
make_pair
(
sizeof
(
cl_int
),
(
void
*
)
&
train
.
rows
));
args
.
push_back
(
make_pair
(
sizeof
(
cl_int
),
(
void
*
)
&
train
.
cols
));
args
.
push_back
(
make_pair
(
sizeof
(
cl_
mem
),
(
void
*
)
&
trainIdx
.
cols
));
args
.
push_back
(
make_pair
(
sizeof
(
cl_
int
),
(
void
*
)
&
trainIdx
.
cols
));
args
.
push_back
(
make_pair
(
sizeof
(
cl_int
),
(
void
*
)
&
query
.
step
));
args
.
push_back
(
make_pair
(
sizeof
(
cl_int
),
(
void
*
)
&
trainIdx
.
step
));
args
.
push_back
(
make_pair
(
sizeof
(
cl_int
),
(
void
*
)
&
distType
));
...
...
@@ -338,7 +338,7 @@ void radius_match(const oclMat &query, const oclMat &train, float maxDistance, c
args
.
push_back
(
make_pair
(
sizeof
(
cl_int
),
(
void
*
)
&
query
.
cols
));
args
.
push_back
(
make_pair
(
sizeof
(
cl_int
),
(
void
*
)
&
train
.
rows
));
args
.
push_back
(
make_pair
(
sizeof
(
cl_int
),
(
void
*
)
&
train
.
cols
));
args
.
push_back
(
make_pair
(
sizeof
(
cl_
mem
),
(
void
*
)
&
trainIdx
.
cols
));
args
.
push_back
(
make_pair
(
sizeof
(
cl_
int
),
(
void
*
)
&
trainIdx
.
cols
));
args
.
push_back
(
make_pair
(
sizeof
(
cl_int
),
(
void
*
)
&
query
.
step
));
args
.
push_back
(
make_pair
(
sizeof
(
cl_int
),
(
void
*
)
&
trainIdx
.
step
));
args
.
push_back
(
make_pair
(
sizeof
(
cl_int
),
(
void
*
)
&
distType
));
...
...
modules/ocl/src/initialization.cpp
View file @
2045c85a
...
...
@@ -338,7 +338,8 @@ namespace cv
EXT_LEN
,
(
void
*
)
extends_set
,
&
extends_size
));
CV_Assert
(
extends_size
<
EXT_LEN
);
extends_set
[
EXT_LEN
-
1
]
=
0
;
//oclinfo.extra_options = NULL;
memset
(
oclinfo
.
impl
->
extra_options
,
0
,
512
);
oclinfo
.
impl
->
double_support
=
0
;
int
fp64_khr
=
string
(
extends_set
).
find
(
"cl_khr_fp64"
);
if
(
fp64_khr
>=
0
&&
fp64_khr
<
EXT_LEN
)
...
...
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