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
973137c7
Commit
973137c7
authored
Oct 27, 2013
by
konstantin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs on host and device sides for imgprog_sobel3.cl
parent
ddd2b106
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
imgproc.cpp
modules/ocl/src/imgproc.cpp
+5
-1
imgproc_sobel3.cl
modules/ocl/src/opencl/imgproc_sobel3.cl
+4
-4
No files found.
modules/ocl/src/imgproc.cpp
View file @
973137c7
...
...
@@ -908,7 +908,11 @@ namespace cv
Context
*
clCxt
=
Context
::
getContext
();
if
(
clCxt
->
supportsFeature
(
FEATURE_CL_INTEL_DEVICE
)
&&
src
.
type
()
==
CV_8UC1
&&
src
.
cols
%
8
==
0
&&
src
.
rows
%
8
==
0
&&
ksize
==
3
)
ksize
==
3
&&
(
borderType
==
cv
::
BORDER_REFLECT
||
borderType
==
cv
::
BORDER_REPLICATE
||
borderType
==
cv
::
BORDER_REFLECT101
||
borderType
==
cv
::
BORDER_WRAP
))
{
Dx
.
create
(
src
.
size
(),
CV_32FC1
);
Dy
.
create
(
src
.
size
(),
CV_32FC1
);
...
...
modules/ocl/src/opencl/imgproc_sobel3.cl
View file @
973137c7
...
...
@@ -55,11 +55,11 @@ __kernel void sobel3(
lsmem[liy+1][lix+1]
=
convert_float
(
Src[
id_y
*
srcStride
+
id_x
]
)
;
int
id_y_h
=
ADDR_H
(
id_y-1,
0
)
;
int
id_y_b
=
ADDR_B
(
id_y+1,
height
)
;
int
id_y_h
=
ADDR_H
(
id_y-1,
0
,
height
)
;
int
id_y_b
=
ADDR_B
(
id_y+1,
height
,id_y+1
)
;
int
id_x_l
=
ADDR_L
(
id_x-1,
0
)
;
int
id_x_r
=
ADDR_R
(
id_x+1,
width
)
;
int
id_x_l
=
ADDR_L
(
id_x-1,
0
,
width
)
;
int
id_x_r
=
ADDR_R
(
id_x+1,
width
,id_x+1
)
;
if
(
liy==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