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
2338a895
Commit
2338a895
authored
Apr 12, 2013
by
peng xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Capitalize macro namings.
parent
1bea9ee2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
brute_force_matcher.cpp
modules/ocl/src/brute_force_matcher.cpp
+8
-8
brute_force_match.cl
modules/ocl/src/opencl/brute_force_match.cl
+0
-0
No files found.
modules/ocl/src/brute_force_matcher.cpp
View file @
2338a895
...
...
@@ -78,7 +78,7 @@ void matchUnrolledCached(const oclMat &query, const oclMat &train, const oclMat
vector
<
pair
<
size_t
,
const
void
*>
>
args
;
char
opt
[
OPT_SIZE
]
=
""
;
sprintf
(
opt
,
"-D
distType=%d -D block_size=%d -D max_desc_len
=%d"
,
distType
,
block_size
,
m_size
);
sprintf
(
opt
,
"-D
DIST_TYPE=%d -D BLOCK_SIZE=%d -D MAX_DESC_LEN
=%d"
,
distType
,
block_size
,
m_size
);
if
(
globalSize
[
0
]
!=
0
)
{
...
...
@@ -119,7 +119,7 @@ void match(const oclMat &query, const oclMat &train, const oclMat &/*mask*/,
vector
<
pair
<
size_t
,
const
void
*>
>
args
;
char
opt
[
OPT_SIZE
]
=
""
;
sprintf
(
opt
,
"-D
distType=%d -D block_size
=%d"
,
distType
,
block_size
);
sprintf
(
opt
,
"-D
DIST_TYPE=%d -D BLOCK_SIZE
=%d"
,
distType
,
block_size
);
if
(
globalSize
[
0
]
!=
0
)
{
...
...
@@ -162,7 +162,7 @@ void matchUnrolledCached(const oclMat &query, const oclMat &train, float maxDist
vector
<
pair
<
size_t
,
const
void
*>
>
args
;
char
opt
[
OPT_SIZE
]
=
""
;
sprintf
(
opt
,
"-D
distType=%d -D block_size=%d -D max_desc_len
=%d"
,
distType
,
block_size
,
m_size
);
sprintf
(
opt
,
"-D
DIST_TYPE=%d -D BLOCK_SIZE=%d -D MAX_DESC_LEN
=%d"
,
distType
,
block_size
,
m_size
);
if
(
globalSize
[
0
]
!=
0
)
{
...
...
@@ -202,7 +202,7 @@ void radius_match(const oclMat &query, const oclMat &train, float maxDistance, c
vector
<
pair
<
size_t
,
const
void
*>
>
args
;
char
opt
[
OPT_SIZE
]
=
""
;
sprintf
(
opt
,
"-D
distType=%d -D block_size
=%d"
,
distType
,
block_size
);
sprintf
(
opt
,
"-D
DIST_TYPE=%d -D BLOCK_SIZE
=%d"
,
distType
,
block_size
);
if
(
globalSize
[
0
]
!=
0
)
{
...
...
@@ -300,7 +300,7 @@ void knn_matchUnrolledCached(const oclMat &query, const oclMat &train, const ocl
vector
<
pair
<
size_t
,
const
void
*>
>
args
;
char
opt
[
OPT_SIZE
]
=
""
;
sprintf
(
opt
,
"-D
distType=%d -D block_size=%d -D max_desc_len
=%d"
,
distType
,
block_size
,
m_size
);
sprintf
(
opt
,
"-D
DIST_TYPE=%d -D BLOCK_SIZE=%d -D MAX_DESC_LEN
=%d"
,
distType
,
block_size
,
m_size
);
if
(
globalSize
[
0
]
!=
0
)
{
...
...
@@ -334,7 +334,7 @@ void knn_match(const oclMat &query, const oclMat &train, const oclMat &/*mask*/,
vector
<
pair
<
size_t
,
const
void
*>
>
args
;
char
opt
[
OPT_SIZE
]
=
""
;
sprintf
(
opt
,
"-D
distType=%d -D block_size
=%d"
,
distType
,
block_size
);
sprintf
(
opt
,
"-D
DIST_TYPE=%d -D BLOCK_SIZE
=%d"
,
distType
,
block_size
);
if
(
globalSize
[
0
]
!=
0
)
{
...
...
@@ -368,7 +368,7 @@ void calcDistanceUnrolled(const oclMat &query, const oclMat &train, const oclMat
vector
<
pair
<
size_t
,
const
void
*>
>
args
;
char
opt
[
OPT_SIZE
]
=
""
;
sprintf
(
opt
,
"-D
distType
=%d"
,
distType
);
sprintf
(
opt
,
"-D
DIST_TYPE
=%d"
,
distType
);
if
(
globalSize
[
0
]
!=
0
)
{
args
.
push_back
(
make_pair
(
sizeof
(
cl_mem
),
(
void
*
)
&
query
.
data
));
...
...
@@ -401,7 +401,7 @@ void calcDistance(const oclMat &query, const oclMat &train, const oclMat &/*mask
vector
<
pair
<
size_t
,
const
void
*>
>
args
;
char
opt
[
OPT_SIZE
]
=
""
;
sprintf
(
opt
,
"-D
distType
=%d"
,
distType
);
sprintf
(
opt
,
"-D
DIST_TYPE
=%d"
,
distType
);
if
(
globalSize
[
0
]
!=
0
)
{
args
.
push_back
(
make_pair
(
sizeof
(
cl_mem
),
(
void
*
)
&
query
.
data
));
...
...
modules/ocl/src/opencl/brute_force_match.cl
View file @
2338a895
This diff is collapsed.
Click to expand it.
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