Skip to content

Commit 3a09da7

Browse files
author
elenagvo
committed
add HAL for medianBlur
1 parent 20c08ea commit 3a09da7

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

modules/imgproc/src/hal_replacement.hpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,21 @@ inline int hal_ni_integral(int depth, int sdepth, int sqdepth, const uchar * src
615615
#define cv_hal_integral hal_ni_integral
616616
//! @endcond
617617

618+
/**
619+
@brief Calculate medianBlur filter
620+
@param depth Depths of source and destination image
621+
@param src_data,src_step Source image
622+
@param dst_data,dst_step Destination image
623+
@param width,height Source image dimensions
624+
@param cn Number of channels
625+
@param ksize Size of kernel
626+
*/
627+
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; }
628+
629+
//! @cond IGNORED
630+
#define cv_hal_medianBlur hal_ni_medianBlur
631+
//! @endcond
632+
618633
//! @}
619634

620635
#if defined __GNUC__

modules/imgproc/src/smooth.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3123,6 +3123,9 @@ void cv::medianBlur( InputArray _src0, OutputArray _dst, int ksize )
31233123
_dst.create( src0.size(), src0.type() );
31243124
Mat dst = _dst.getMat();
31253125

3126+
CALL_HAL(medianBlur, cv_hal_medianBlur, src0.depth(), src0.data, src0.step, dst.data, dst.step, src0.cols, src0.rows,
3127+
src0.channels(), ksize);
3128+
31263129
CV_OVX_RUN(true,
31273130
openvx_medianFilter(_src0, _dst, ksize))
31283131

0 commit comments

Comments
 (0)