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
ba5d480f
Commit
ba5d480f
authored
Jan 14, 2014
by
Elena Gvozdeva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed warnings
parent
86636dc2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
match_template.cl
modules/imgproc/src/opencl/match_template.cl
+0
-21
templmatch.cpp
modules/imgproc/src/templmatch.cpp
+0
-0
No files found.
modules/imgproc/src/opencl/match_template.cl
View file @
ba5d480f
...
...
@@ -404,24 +404,4 @@ __kernel void matchTemplate_CCOEFF_NORMED_C4 (__global const uchar * img_sums, i
__global
float
*
result
=
(
__global
float
*
)(
res
)
+res_idx
;
*result
=
normAcc
((
*result
)
-
num,
denum
)
;
}
}
////////////////////////////////////////////
extractFirstChannel/////////////////////////////
__kernel
void
extractFirstChannel
(
const
__global
float4*
img,
int
img_step,
int
img_offset,
__global
float*
res,
int
res_step,
int
res_offset,
int
rows,
int
cols
)
{
img_step
/=
sizeof
(
float4
)
;
img_offset
/=
sizeof
(
float4
)
;
res_step
/=
sizeof
(
float
)
;
res_offset
/=
sizeof
(
float
)
;
int
gidx
=
get_global_id
(
0
)
;
int
gidy
=
get_global_id
(
1
)
;
if
(
gidx
<
cols
&&
gidy
<
rows
)
{
__global
const
float4
*
image
=
(
__global
const
float4
*
)(
img
)
+
mad24
(
gidy,
img_step,
img_offset
+
gidx
)
;
__global
float
*
result
=
(
__global
float
*
)(
res
)
+
mad24
(
gidy,
res_step,
res_offset
+
gidx
)
;
*result
=
image[0].x
;
}
}
\ No newline at end of file
modules/imgproc/src/templmatch.cpp
View file @
ba5d480f
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