@@ -83,13 +83,9 @@ static double errorLevel(const Mat &ideal, Mat &actual)
83
83
void CV_BlockMatchingTest::run (int )
84
84
{
85
85
Mat image1, image2, gt;
86
- // some test images can be found in the test data folder
87
- // in order for the tests to build succesfully please replace
88
- // ts->get_data_path() + "testdata/imL2l.bmp with the path from your disk
89
- // for example if your images are on D:\\ , please write D:\\testdata\\imL2l.bmp
90
- image1 = imread (ts->get_data_path () + " testdata/imL2l.bmp" , CV_8UC1);
91
- image2 = imread (ts->get_data_path () + " testdata/imL2.bmp" , CV_8UC1);
92
- gt = imread (ts->get_data_path () + " testdata/groundtruth.bmp" , CV_8UC1);
86
+ image1 = imread (ts->get_data_path () + " stereomatching/datasets/tsukuba/im2.png" , IMREAD_GRAYSCALE);
87
+ image2 = imread (ts->get_data_path () + " stereomatching/datasets/tsukuba/im6.png" , IMREAD_GRAYSCALE);
88
+ gt = imread (ts->get_data_path () + " stereomatching/datasets/tsukuba/disp2.png" , IMREAD_GRAYSCALE);
93
89
94
90
if (image1.empty () || image2.empty () || gt.empty ())
95
91
{
@@ -169,10 +165,9 @@ CV_SGBlockMatchingTest::~CV_SGBlockMatchingTest(){}
169
165
void CV_SGBlockMatchingTest::run (int )
170
166
{
171
167
Mat image1, image2, gt;
172
- // some test images can be found in the test data folder
173
- image1 = imread (ts->get_data_path () + " testdata/imL2l.bmp" , CV_8UC1);
174
- image2 = imread (ts->get_data_path () + " testdata/imL2.bmp" , CV_8UC1);
175
- gt = imread (ts->get_data_path () + " testdata/groundtruth.bmp" , CV_8UC1);
168
+ image1 = imread (ts->get_data_path () + " stereomatching/datasets/tsukuba/im2.png" , IMREAD_GRAYSCALE);
169
+ image2 = imread (ts->get_data_path () + " stereomatching/datasets/tsukuba/im6.png" , IMREAD_GRAYSCALE);
170
+ gt = imread (ts->get_data_path () + " stereomatching/datasets/tsukuba/disp2.png" , IMREAD_GRAYSCALE);
176
171
177
172
178
173
if (image1.empty () || image2.empty () || gt.empty ())
0 commit comments