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
00094a87
Commit
00094a87
authored
Apr 15, 2015
by
Nisarg Thakkar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for Bug4243. Made changes relating to non OpenCL devices
parent
a0bc0ab7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
morph.cpp
modules/imgproc/src/morph.cpp
+5
-11
No files found.
modules/imgproc/src/morph.cpp
View file @
00094a87
...
...
@@ -1823,19 +1823,13 @@ void cv::morphologyEx( InputArray _src, OutputArray _dst, int op,
InputArray
_kernel
,
Point
anchor
,
int
iterations
,
int
borderType
,
const
Scalar
&
borderValue
)
{
#ifdef HAVE_OPENCL
Size
ksize
=
_kernel
.
size
();
Mat
tempKernel
;
if
(
ksize
.
height
==
0
||
ksize
.
width
==
0
)
{
tempKernel
=
getStructuringElement
(
MORPH_RECT
,
Size
(
3
,
3
),
Point
(
1
,
1
));
ksize
=
tempKernel
.
size
();
}
else
Mat
kernel
=
_kernel
.
getMat
();
if
(
kernel
.
empty
())
{
tempKernel
=
_kernel
.
getMat
(
);
kernel
=
getStructuringElement
(
MORPH_RECT
,
Size
(
3
,
3
),
Point
(
1
,
1
)
);
}
InputArray
kernel
=
InputArray
(
tempKernel
);
#ifdef HAVE_OPENCL
Size
ksize
=
kernel
.
size
();
anchor
=
normalizeAnchor
(
anchor
,
ksize
);
CV_OCL_RUN
(
_dst
.
isUMat
()
&&
_src
.
dims
()
<=
2
&&
_src
.
channels
()
<=
4
&&
...
...
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