We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f238144 commit 48abe60Copy full SHA for 48abe60
modules/ximgproc/test/test_globalmatting.cpp
@@ -27,8 +27,9 @@ class CV_GlobalMattingTest
27
28
void CV_GlobalMattingTest::runModel()
29
{
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;
+ std::string folder = std::string(cvtest::TS::ptr()->get_data_path());
+ std::string img_path = folder + INPUT_DIR + "/" + IMAGE_FILENAME;
32
+ std::string trimap_path = folder + INPUT_DIR + "/" + TRIMAP_FILENAME;
33
34
Mat img = cv::imread(img_path,cv::IMREAD_COLOR);
35
Mat trimap = cv::imread(trimap_path,cv::IMREAD_GRAYSCALE);
0 commit comments