Skip to content

Commit f8889a8

Browse files
committed
Fixing tests and trailing whitespaces
1 parent 31f9cde commit f8889a8

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

modules/ximgproc/perf/perf_disparity_wls_filter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ PERF_TEST_P( DisparityWLSFilterPerfTest, perf, Combine(GuideTypes::all(), SrcTyp
8585
cv::setNumThreads(cv::getNumberOfCPUs());
8686
TEST_CYCLE_N(10)
8787
{
88-
Ptr<DisparityWLSFilter> wls_filter = createDisparityWLSFilter(use_conf);
88+
Ptr<DisparityWLSFilter> wls_filter = createDisparityWLSFilterGeneric(use_conf);
8989
wls_filter->filter(disp_left,guide,dst,disp_right,ROI);
9090
}
9191

modules/ximgproc/test/test_disparity_wls_filter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ TEST(DisparityWLSFilterTest, ReferenceAccuracy)
8383
cv::setNumThreads(cv::getNumberOfCPUs());
8484
Mat res;
8585

86-
Ptr<DisparityWLSFilter> wls_filter = createDisparityWLSFilter(true);
86+
Ptr<DisparityWLSFilter> wls_filter = createDisparityWLSFilterGeneric(true);
8787
wls_filter->setLambda(8000.0);
8888
wls_filter->setSigmaColor(0.5);
8989
wls_filter->filter(left_disp,left,res,right_disp,ROI);
@@ -134,7 +134,7 @@ TEST_P(DisparityWLSFilterTest, MultiThreadReproducibility)
134134
double lambda = rng.uniform(100.0, 10000.0);
135135
double sigma = rng.uniform(1.0, 100.0);
136136

137-
Ptr<DisparityWLSFilter> wls_filter = createDisparityWLSFilter(use_conf);
137+
Ptr<DisparityWLSFilter> wls_filter = createDisparityWLSFilterGeneric(use_conf);
138138
wls_filter->setLambda(lambda);
139139
wls_filter->setSigmaColor(sigma);
140140

modules/ximgproc/tutorials/disparity_filtering.markdown

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ Source Code
3232
Explanation
3333
-----------
3434

35-
The provided example has several options that yield different trade-offs between the speed and
35+
The provided example has several options that yield different trade-offs between the speed and
3636
the quality of the resulting disparity map. Both the speed and the quality are measured if the user
37-
has provided the ground-truth disparity map. In this tutorial we will take a detailed look at the
38-
default pipeline, that was designed to provide the best possible quality under the constraints of
37+
has provided the ground-truth disparity map. In this tutorial we will take a detailed look at the
38+
default pipeline, that was designed to provide the best possible quality under the constraints of
3939
real-time processing on CPU.
4040

4141
-# **Load left and right views**
@@ -50,11 +50,11 @@ real-time processing on CPU.
5050

5151
-# **Perform matching and create the filter instance**
5252
@snippet ximgproc/samples/disparity_filtering.cpp matching
53-
We are using StereoBM for faster processing. If speed is not critical, though,
54-
StereoSGBM would provide better quality. The filter instance is created by providing
55-
the StereoMatcher instance that we intend to use. Another matcher instance is
56-
returned by the createRightMatcher function. These two matcher instances are then
57-
used to compute disparity maps both for the left and right views, that are required
53+
We are using StereoBM for faster processing. If speed is not critical, though,
54+
StereoSGBM would provide better quality. The filter instance is created by providing
55+
the StereoMatcher instance that we intend to use. Another matcher instance is
56+
returned by the createRightMatcher function. These two matcher instances are then
57+
used to compute disparity maps both for the left and right views, that are required
5858
by the filter.
5959

6060
-# **Perform filtering**

0 commit comments

Comments
 (0)