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
fda99c1c
Commit
fda99c1c
authored
Sep 04, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12394 from alalek:imgproc_GaussianBlur_allow_HAL_8U
parents
71c8de8f
1e362ff5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
smooth.cpp
modules/imgproc/src/smooth.cpp
+11
-14
No files found.
modules/imgproc/src/smooth.cpp
View file @
fda99c1c
...
...
@@ -4106,20 +4106,6 @@ void cv::GaussianBlur( InputArray _src, OutputArray _dst, Size ksize,
int
sdepth
=
CV_MAT_DEPTH
(
type
),
cn
=
CV_MAT_CN
(
type
);
if
(
sdepth
==
CV_8U
&&
((
borderType
&
BORDER_ISOLATED
)
||
!
_src
.
getMat
().
isSubmatrix
()))
{
std
::
vector
<
ufixedpoint16
>
fkx
,
fky
;
createGaussianKernels
(
fkx
,
fky
,
type
,
ksize
,
sigma1
,
sigma2
);
Mat
src
=
_src
.
getMat
();
Mat
dst
=
_dst
.
getMat
();
if
(
src
.
data
==
dst
.
data
)
src
=
src
.
clone
();
fixedSmoothInvoker
<
uint8_t
,
ufixedpoint16
>
invoker
(
src
.
ptr
<
uint8_t
>
(),
src
.
step1
(),
dst
.
ptr
<
uint8_t
>
(),
dst
.
step1
(),
dst
.
cols
,
dst
.
rows
,
dst
.
channels
(),
&
fkx
[
0
],
(
int
)
fkx
.
size
(),
&
fky
[
0
],
(
int
)
fky
.
size
(),
borderType
&
~
BORDER_ISOLATED
);
parallel_for_
(
Range
(
0
,
dst
.
rows
),
invoker
,
std
::
max
(
1
,
std
::
min
(
getNumThreads
(),
getNumberOfCPUs
())));
return
;
}
Mat
kx
,
ky
;
createGaussianKernels
(
kx
,
ky
,
type
,
ksize
,
sigma1
,
sigma2
);
...
...
@@ -4145,6 +4131,17 @@ void cv::GaussianBlur( InputArray _src, OutputArray _dst, Size ksize,
CV_IPP_RUN_FAST
(
ipp_GaussianBlur
(
src
,
dst
,
ksize
,
sigma1
,
sigma2
,
borderType
));
if
(
sdepth
==
CV_8U
&&
((
borderType
&
BORDER_ISOLATED
)
||
!
_src
.
getMat
().
isSubmatrix
()))
{
std
::
vector
<
ufixedpoint16
>
fkx
,
fky
;
createGaussianKernels
(
fkx
,
fky
,
type
,
ksize
,
sigma1
,
sigma2
);
if
(
src
.
data
==
dst
.
data
)
src
=
src
.
clone
();
fixedSmoothInvoker
<
uint8_t
,
ufixedpoint16
>
invoker
(
src
.
ptr
<
uint8_t
>
(),
src
.
step1
(),
dst
.
ptr
<
uint8_t
>
(),
dst
.
step1
(),
dst
.
cols
,
dst
.
rows
,
dst
.
channels
(),
&
fkx
[
0
],
(
int
)
fkx
.
size
(),
&
fky
[
0
],
(
int
)
fky
.
size
(),
borderType
&
~
BORDER_ISOLATED
);
parallel_for_
(
Range
(
0
,
dst
.
rows
),
invoker
,
std
::
max
(
1
,
std
::
min
(
getNumThreads
(),
getNumberOfCPUs
())));
return
;
}
sepFilter2D
(
src
,
dst
,
sdepth
,
kx
,
ky
,
Point
(
-
1
,
-
1
),
0
,
borderType
);
}
...
...
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