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
a0bc0ab7
Commit
a0bc0ab7
authored
Apr 15, 2015
by
Nisarg Thakkar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for Bug4243
parent
81c5d580
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
morph.cpp
modules/imgproc/src/morph.cpp
+13
-2
No files found.
modules/imgproc/src/morph.cpp
View file @
a0bc0ab7
...
...
@@ -1820,11 +1820,22 @@ static bool ocl_morphologyEx(InputArray _src, OutputArray _dst, int op,
#endif
void
cv
::
morphologyEx
(
InputArray
_src
,
OutputArray
_dst
,
int
op
,
InputArray
kernel
,
Point
anchor
,
int
iterations
,
InputArray
_
kernel
,
Point
anchor
,
int
iterations
,
int
borderType
,
const
Scalar
&
borderValue
)
{
#ifdef HAVE_OPENCL
Size
ksize
=
kernel
.
size
();
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
{
tempKernel
=
_kernel
.
getMat
();
}
InputArray
kernel
=
InputArray
(
tempKernel
);
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