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
a95d63da
Commit
a95d63da
authored
Aug 08, 2016
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7042 from alalek:update_6967
parents
39ebca5d
b1228632
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
filter.cpp
modules/imgproc/src/filter.cpp
+1
-1
smooth.cpp
modules/imgproc/src/smooth.cpp
+4
-1
test_filters.cpp
modules/imgproc/test/ocl/test_filters.cpp
+1
-1
No files found.
modules/imgproc/src/filter.cpp
View file @
a95d63da
...
@@ -5019,7 +5019,7 @@ void cv::sepFilter2D( InputArray _src, OutputArray _dst, int ddepth,
...
@@ -5019,7 +5019,7 @@ void cv::sepFilter2D( InputArray _src, OutputArray _dst, int ddepth,
InputArray
_kernelX
,
InputArray
_kernelY
,
Point
anchor
,
InputArray
_kernelX
,
InputArray
_kernelY
,
Point
anchor
,
double
delta
,
int
borderType
)
double
delta
,
int
borderType
)
{
{
CV_OCL_RUN
(
_dst
.
isUMat
()
&&
_src
.
dims
()
<=
2
,
CV_OCL_RUN
(
_dst
.
isUMat
()
&&
_src
.
dims
()
<=
2
&&
(
size_t
)
_src
.
rows
()
>
_kernelY
.
total
()
&&
(
size_t
)
_src
.
cols
()
>
_kernelX
.
total
()
,
ocl_sepFilter2D
(
_src
,
_dst
,
ddepth
,
_kernelX
,
_kernelY
,
anchor
,
delta
,
borderType
))
ocl_sepFilter2D
(
_src
,
_dst
,
ddepth
,
_kernelX
,
_kernelY
,
anchor
,
delta
,
borderType
))
Mat
src
=
_src
.
getMat
(),
kernelX
=
_kernelX
.
getMat
(),
kernelY
=
_kernelY
.
getMat
();
Mat
src
=
_src
.
getMat
(),
kernelX
=
_kernelX
.
getMat
(),
kernelY
=
_kernelY
.
getMat
();
...
...
modules/imgproc/src/smooth.cpp
View file @
a95d63da
...
@@ -1734,6 +1734,9 @@ static bool ipp_GaussianBlur( InputArray _src, OutputArray _dst, Size ksize,
...
@@ -1734,6 +1734,9 @@ static bool ipp_GaussianBlur( InputArray _src, OutputArray _dst, Size ksize,
int
borderType
)
int
borderType
)
{
{
#if IPP_VERSION_X100 >= 810
#if IPP_VERSION_X100 >= 810
if
((
borderType
&
BORDER_ISOLATED
)
==
0
&&
_src
.
isSubmatrix
())
return
false
;
int
type
=
_src
.
type
();
int
type
=
_src
.
type
();
Size
size
=
_src
.
size
();
Size
size
=
_src
.
size
();
...
@@ -1850,7 +1853,7 @@ void cv::GaussianBlur( InputArray _src, OutputArray _dst, Size ksize,
...
@@ -1850,7 +1853,7 @@ void cv::GaussianBlur( InputArray _src, OutputArray _dst, Size ksize,
return
;
return
;
#endif
#endif
CV_IPP_RUN
(
true
,
ipp_GaussianBlur
(
_src
,
_dst
,
ksize
,
sigma1
,
sigma2
,
borderType
));
CV_IPP_RUN
(
!
(
ocl
::
useOpenCL
()
&&
_dst
.
isUMat
())
,
ipp_GaussianBlur
(
_src
,
_dst
,
ksize
,
sigma1
,
sigma2
,
borderType
));
Mat
kx
,
ky
;
Mat
kx
,
ky
;
createGaussianKernels
(
kx
,
ky
,
type
,
ksize
,
sigma1
,
sigma2
);
createGaussianKernels
(
kx
,
ky
,
type
,
ksize
,
sigma1
,
sigma2
);
...
...
modules/imgproc/test/ocl/test_filters.cpp
View file @
a95d63da
...
@@ -225,7 +225,7 @@ OCL_TEST_P(GaussianBlurTest, Mat)
...
@@ -225,7 +225,7 @@ OCL_TEST_P(GaussianBlurTest, Mat)
OCL_OFF
(
cv
::
GaussianBlur
(
src_roi
,
dst_roi
,
Size
(
ksize
,
ksize
),
sigma1
,
sigma2
,
borderType
));
OCL_OFF
(
cv
::
GaussianBlur
(
src_roi
,
dst_roi
,
Size
(
ksize
,
ksize
),
sigma1
,
sigma2
,
borderType
));
OCL_ON
(
cv
::
GaussianBlur
(
usrc_roi
,
udst_roi
,
Size
(
ksize
,
ksize
),
sigma1
,
sigma2
,
borderType
));
OCL_ON
(
cv
::
GaussianBlur
(
usrc_roi
,
udst_roi
,
Size
(
ksize
,
ksize
),
sigma1
,
sigma2
,
borderType
));
Near
(
CV_MAT_DEPTH
(
type
)
>=
CV_32F
?
7e-5
:
1
,
false
);
Near
(
CV_MAT_DEPTH
(
type
)
>=
CV_32F
?
1e-3
:
4
,
CV_MAT_DEPTH
(
type
)
>=
CV_32F
);
}
}
}
}
...
...
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