Skip to content

Commit 48abe60

Browse files
authored
Using cvtest::findDatafile
1 parent f238144 commit 48abe60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/ximgproc/test/test_globalmatting.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ class CV_GlobalMattingTest
2727

2828
void CV_GlobalMattingTest::runModel()
2929
{
30-
std::string img_path = std::string(ts->get_data_path()) + INPUT_DIR + "/" + IMAGE_FILENAME;
31-
std::string trimap_path = std::string(ts->get_data_path()) + INPUT_DIR + "/" + TRIMAP_FILENAME;
30+
std::string folder = std::string(cvtest::TS::ptr()->get_data_path());
31+
std::string img_path = folder + INPUT_DIR + "/" + IMAGE_FILENAME;
32+
std::string trimap_path = folder + INPUT_DIR + "/" + TRIMAP_FILENAME;
3233

3334
Mat img = cv::imread(img_path,cv::IMREAD_COLOR);
3435
Mat trimap = cv::imread(trimap_path,cv::IMREAD_GRAYSCALE);

0 commit comments

Comments
 (0)