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
2812762d
Commit
2812762d
authored
Aug 04, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imgproc: disable IPP for GaussianBlur in case of ROI
parent
37cccf17
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
smooth.cpp
modules/imgproc/src/smooth.cpp
+3
-0
test_filters.cpp
modules/imgproc/test/ocl/test_filters.cpp
+1
-1
No files found.
modules/imgproc/src/smooth.cpp
View file @
2812762d
...
@@ -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
();
...
...
modules/imgproc/test/ocl/test_filters.cpp
View file @
2812762d
...
@@ -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