Commit 95af1b58 authored by Maksim Shabunin's avatar Maksim Shabunin

Tests for xphoto

parent 79df3dbc
...@@ -4,8 +4,7 @@ namespace cvtest ...@@ -4,8 +4,7 @@ namespace cvtest
{ {
TEST(xphoto_simplecolorbalance, regression) TEST(xphoto_simplecolorbalance, regression)
{ {
cv::String subfolder = "cv/xphoto/"; cv::String dir = cvtest::TS::ptr()->get_data_path() + "cv/xphoto/simple_white_balance/";
cv::String dir = cvtest::TS::ptr()->get_data_path() + subfolder + "simple_white_balance/";
int nTests = 12; int nTests = 12;
float threshold = 0.005f; float threshold = 0.005f;
...@@ -28,4 +27,4 @@ namespace cvtest ...@@ -28,4 +27,4 @@ namespace cvtest
EXPECT_LE( mse[0]+mse[1]+mse[2]+mse[3], threshold ); EXPECT_LE( mse[0]+mse[1]+mse[2]+mse[3], threshold );
} }
} }
} }
\ No newline at end of file
...@@ -65,8 +65,7 @@ namespace cvtest { ...@@ -65,8 +65,7 @@ namespace cvtest {
TEST(xphoto_grayworld_white_balance, regression) TEST(xphoto_grayworld_white_balance, regression)
{ {
String subfolder = "/xphoto/"; String dir = cvtest::TS::ptr()->get_data_path() + "cv/xphoto/simple_white_balance/";
String dir = cvtest::TS::ptr()->get_data_path() + subfolder + "simple_white_balance/";
const int nTests = 14; const int nTests = 14;
const float wb_thresh = 0.5f; const float wb_thresh = 0.5f;
const float acc_thresh = 2.f; const float acc_thresh = 2.f;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment