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
3a09da71
Commit
3a09da71
authored
Nov 17, 2017
by
elenagvo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add HAL for medianBlur
parent
20c08eab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
hal_replacement.hpp
modules/imgproc/src/hal_replacement.hpp
+15
-0
smooth.cpp
modules/imgproc/src/smooth.cpp
+3
-0
No files found.
modules/imgproc/src/hal_replacement.hpp
View file @
3a09da71
...
...
@@ -615,6 +615,21 @@ inline int hal_ni_integral(int depth, int sdepth, int sqdepth, const uchar * src
#define cv_hal_integral hal_ni_integral
//! @endcond
/**
@brief Calculate medianBlur filter
@param depth Depths of source and destination image
@param src_data,src_step Source image
@param dst_data,dst_step Destination image
@param width,height Source image dimensions
@param cn Number of channels
@param ksize Size of kernel
*/
inline
int
hal_ni_medianBlur
(
int
depth
,
const
uchar
*
src_data
,
size_t
src_step
,
uchar
*
dst_data
,
size_t
dst_step
,
int
width
,
int
height
,
int
cn
,
int
ksize
)
{
return
CV_HAL_ERROR_NOT_IMPLEMENTED
;
}
//! @cond IGNORED
#define cv_hal_medianBlur hal_ni_medianBlur
//! @endcond
//! @}
#if defined __GNUC__
...
...
modules/imgproc/src/smooth.cpp
View file @
3a09da71
...
...
@@ -3123,6 +3123,9 @@ void cv::medianBlur( InputArray _src0, OutputArray _dst, int ksize )
_dst
.
create
(
src0
.
size
(),
src0
.
type
()
);
Mat
dst
=
_dst
.
getMat
();
CALL_HAL
(
medianBlur
,
cv_hal_medianBlur
,
src0
.
depth
(),
src0
.
data
,
src0
.
step
,
dst
.
data
,
dst
.
step
,
src0
.
cols
,
src0
.
rows
,
src0
.
channels
(),
ksize
);
CV_OVX_RUN
(
true
,
openvx_medianFilter
(
_src0
,
_dst
,
ksize
))
...
...
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