@@ -22,8 +22,8 @@ class FcvFilterLoop_Invoker : public cv::ParallelLoopBody
2222 {
2323 int height_ = range.end - range.start ;
2424 int width_ = width;
25- cv::Mat src_;
26- int n = knl/2 ;
25+ cv::Mat src_;
26+ int n = knl/2 ;
2727
2828 src_ = cv::Mat (height_ + 2 * n, width_ + 2 * n, CV_8U);
2929 if (range.start == 0 && range.end == height)
@@ -43,7 +43,7 @@ class FcvFilterLoop_Invoker : public cv::ParallelLoopBody
4343 cv::copyMakeBorder (src (cv::Rect (0 , range.start - n, width_, height_ + 2 * n)), src_, 0 , 0 , n, n, bdr);
4444 }
4545
46- cv::Mat dst_padded = cv::Mat (height_ + 2 *n, width_ + 2 *n, CV_8U);
46+ cv::Mat dst_padded = cv::Mat (height_ + 2 *n, width_ + 2 *n, CV_8U);
4747
4848 auto func = (knl == 5 ) ? fcvBilateralFilter5x5u8_v3 :
4949 (knl == 7 ) ? fcvBilateralFilter7x7u8_v3 :
@@ -52,10 +52,10 @@ class FcvFilterLoop_Invoker : public cv::ParallelLoopBody
5252 func (src_.data , width_ + 2 * n, height_ + 2 * n, width_ + 2 * n,
5353 dst_padded.data , width_ + 2 * n, sigma_color, sigma_space, 0 );
5454
55- cv::Mat dst_temp1 = dst_padded (cv::Rect (n, n, width_, height_));
56- cv::Mat dst_temp2 = dst (cv::Rect (0 , range.start , width_, height_));
57- dst_temp1.copyTo (dst_temp2);
58- }
55+ cv::Mat dst_temp1 = dst_padded (cv::Rect (n, n, width_, height_));
56+ cv::Mat dst_temp2 = dst (cv::Rect (0 , range.start , width_, height_));
57+ dst_temp1.copyTo (dst_temp2);
58+ }
5959
6060private:
6161 const size_t src_step;
@@ -67,8 +67,8 @@ class FcvFilterLoop_Invoker : public cv::ParallelLoopBody
6767 float32_t sigma_color;
6868 float32_t sigma_space;
6969 int ret;
70- cv::Mat src;
71- cv::Mat dst;
70+ cv::Mat src;
71+ cv::Mat dst;
7272
7373 FcvFilterLoop_Invoker (const FcvFilterLoop_Invoker &); // = delete;
7474 const FcvFilterLoop_Invoker& operator = (const FcvFilterLoop_Invoker &); // = delete;
@@ -82,24 +82,20 @@ void bilateralFilter( InputArray _src, OutputArray _dst, int d,
8282
8383 CV_Assert (!_src.empty ());
8484 int type = _src.type ();
85- CV_Assert (type == CV_8UC1);
86- CV_Assert (d == 5 || d == 7 || d == 9 );
85+ CV_Assert (type == CV_8UC1);
86+ CV_Assert (d == 5 || d == 7 || d == 9 );
8787
8888 Size size = _src.size ();
89- _dst.create ( size, type );
89+ _dst.create ( size, type );
9090 Mat src = _src.getMat ();
9191 Mat dst = _dst.getMat ();
9292
9393 CV_Assert (src.data != dst.data );
9494
9595 if ( sigmaColor <= 0 )
96- {
9796 sigmaColor = 1 ;
98- }
9997 if ( sigmaSpace <= 0 )
100- {
10198 sigmaSpace = 1 ;
102- }
10399
104100 int nStripes = (src.rows / 20 == 0 ) ? 1 : (src.rows / 20 );
105101 cv::parallel_for_ (cv::Range (0 , src.rows ),
0 commit comments