Skip to content

Commit 7aadbc9

Browse files
author
elenagvo
committed
remove complex data structs
1 parent ce65975 commit 7aadbc9

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

modules/imgproc/src/hal_replacement.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -671,13 +671,13 @@ inline int hal_ni_threshold(const uchar* src_data, size_t src_step, uchar* dst_d
671671
@param dst_data,dst_step Destination image
672672
@param width,height Source image dimensions
673673
@param cn Number of channels
674-
@param margins Margins for source image
675-
@param ksize Size of kernel
676-
@param anchor Anchor point
674+
@param margin_left,margin_top,margin_right,margin_bottom Margins for source image
675+
@param ksize_width,ksize_height Size of kernel
676+
@param anchor_x,anchor_y Anchor point
677677
@param normalize If true then result is normalized
678678
@param border_type Border type
679679
*/
680-
inline int hal_ni_boxFilter(int src_depth, int dst_depth, const uchar* src_data, size_t src_step, uchar* dst_data, size_t dst_step, int width, int height, int cn, CvRect margins, CvSize ksize, CvPoint anchor, bool normalize, int border_type) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
680+
inline int hal_ni_boxFilter(int src_depth, int dst_depth, const uchar* src_data, size_t src_step, uchar* dst_data, size_t dst_step, int width, int height, int cn, int margin_left, int margin_top, int margin_right, int margin_bottom, size_t ksize_width, size_t ksize_height, int anchor_x, int anchor_y, bool normalize, int border_type) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
681681

682682
//! @cond IGNORED
683683
#define cv_hal_boxFilter hal_ni_boxFilter
@@ -690,12 +690,12 @@ inline int hal_ni_boxFilter(int src_depth, int dst_depth, const uchar* src_data,
690690
@param dst_data,dst_step Destination image
691691
@param width,height Source image dimensions
692692
@param cn Number of channels
693-
@param margins Margins for source image
694-
@param ksize Size of kernel
693+
@param margin_left,margin_top,margin_right,margin_bottom Margins for source image
694+
@param ksize_width,ksize_height Size of kernel
695695
@param sigmaX,sigmaY Gaussian kernel standard deviation.
696696
@param border_type Border type
697697
*/
698-
inline int hal_ni_gaussianBlur(int depth, const uchar* src_data, size_t src_step, uchar* dst_data, size_t dst_step, int width, int height, int cn, CvRect margins, CvSize ksize, double sigmaX, double sigmaY, int border_type) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
698+
inline int hal_ni_gaussianBlur(int depth, const uchar* src_data, size_t src_step, uchar* dst_data, size_t dst_step, int width, int height, int cn, size_t margin_left, size_t margin_top, size_t margin_right, size_t margin_bottom, size_t ksize_width, size_t ksize_height, double sigmaX, double sigmaY, int border_type) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
699699

700700
//! @cond IGNORED
701701
#define cv_hal_gaussianBlur hal_ni_gaussianBlur

modules/imgproc/src/smooth.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,10 +1559,9 @@ void cv::boxFilter( InputArray _src, OutputArray _dst, int ddepth,
15591559
src.locateROI( wsz, ofs );
15601560
borderType = (borderType&~BORDER_ISOLATED);
15611561

1562-
CvRect margin = cvRect(ofs.x, ofs.y, wsz.width - src.cols - ofs.x, wsz.height - src.rows - ofs.y);
1563-
15641562
CALL_HAL(boxFilter, cv_hal_boxFilter, sdepth, ddepth, src.ptr(), src.step, dst.ptr(), dst.step, src.cols, src.rows, cn,
1565-
margin, (CvSize)(ksize), (CvPoint)(anchor), normalize, borderType);
1563+
ofs.x, ofs.y, wsz.width - src.cols - ofs.x, wsz.height - src.rows - ofs.y, ksize.width, ksize.height,
1564+
anchor.x, anchor.y, normalize, borderType);
15661565

15671566
#ifdef HAVE_TEGRA_OPTIMIZATION
15681567
if ( tegra::useTegra() && tegra::box(src, dst, ksize, anchor, normalize, borderType) )
@@ -2123,10 +2122,9 @@ void cv::GaussianBlur( InputArray _src, OutputArray _dst, Size ksize,
21232122
src.locateROI( wsz, ofs );
21242123
borderType = (borderType&~BORDER_ISOLATED);
21252124

2126-
CvRect margin = cvRect(ofs.x, ofs.y, wsz.width - src.cols - ofs.x, wsz.height - src.rows - ofs.y);
2127-
21282125
CALL_HAL(gaussianBlur, cv_hal_gaussianBlur, sdepth, src.ptr(), src.step, dst.ptr(), dst.step, src.cols, src.rows, cn,
2129-
margin, (CvSize)(ksize), sigma1, sigma2, borderType);
2126+
ofs.x, ofs.y, wsz.width - src.cols - ofs.x, wsz.height - src.rows - ofs.y, ksize.width, ksize.height,
2127+
sigma1, sigma2, borderType);
21302128

21312129
src.release();
21322130
dst.release();

0 commit comments

Comments
 (0)