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
033aebe6
Commit
033aebe6
authored
May 15, 2014
by
Aaron Kunze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A more efficient workaround for erode
parent
cafcfc4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
morph.cl
modules/imgproc/src/opencl/morph.cl
+7
-2
No files found.
modules/imgproc/src/opencl/morph.cl
View file @
033aebe6
...
...
@@ -77,9 +77,14 @@
#
endif
#
ifdef
ERODE
#
if
def
INTEL_DEVICE
#
if
defined
(
INTEL_DEVICE
)
&&
(
DEPTH_0
)
//
workaround
for
bug
in
Intel
HD
graphics
drivers
(
10.18.10.3496
or
older
)
#
define
MORPH_OP
(
A,B
)
((
A
)
<
(
B
)
?
(
A
)
:
(
B
))
#
define
__CAT
(
x,
y
)
x##y
#
define
CAT
(
x,
y
)
__CAT
(
x,
y
)
#
define
WA_CONVERT_1
CAT
(
convert_uint,
cn
)
#
define
WA_CONVERT_2
CAT
(
convert_,
T
)
#
define
convert_uint1
convert_uint
#
define
MORPH_OP
(
A,B
)
WA_CONVERT_2
(
min
(
WA_CONVERT_1
(
A
)
,
WA_CONVERT_1
(
B
)))
#
else
#
define
MORPH_OP
(
A,B
)
min
((
A
)
,
(
B
))
#
endif
...
...
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