Commit ab18c2d1 authored by Konstantin Matskevich's avatar Konstantin Matskevich

changed testdata path for calib3d

parent a164381c
...@@ -337,7 +337,7 @@ void CV_CameraCalibrationTest::run( int start_from ) ...@@ -337,7 +337,7 @@ void CV_CameraCalibrationTest::run( int start_from )
int progress = 0; int progress = 0;
int values_read = -1; int values_read = -1;
sprintf( filepath, "%scameracalibration/", ts->get_data_path().c_str() ); sprintf( filepath, "%scv/cameracalibration/", ts->get_data_path().c_str() );
sprintf( filename, "%sdatafiles.txt", filepath ); sprintf( filename, "%sdatafiles.txt", filepath );
datafile = fopen( filename, "r" ); datafile = fopen( filename, "r" );
if( datafile == 0 ) if( datafile == 0 )
...@@ -1384,7 +1384,7 @@ void CV_StereoCalibrationTest::run( int ) ...@@ -1384,7 +1384,7 @@ void CV_StereoCalibrationTest::run( int )
{ {
char filepath[1000]; char filepath[1000];
char buf[1000]; char buf[1000];
sprintf( filepath, "%sstereo/case%d/stereo_calib.txt", ts->get_data_path().c_str(), testcase ); sprintf( filepath, "%scv/stereo/case%d/stereo_calib.txt", ts->get_data_path().c_str(), testcase );
f = fopen(filepath, "rt"); f = fopen(filepath, "rt");
Size patternSize; Size patternSize;
vector<string> imglist; vector<string> imglist;
...@@ -1405,7 +1405,7 @@ void CV_StereoCalibrationTest::run( int ) ...@@ -1405,7 +1405,7 @@ void CV_StereoCalibrationTest::run( int )
buf[--len] = '\0'; buf[--len] = '\0';
if( buf[0] == '#') if( buf[0] == '#')
continue; continue;
sprintf(filepath, "%sstereo/case%d/%s", ts->get_data_path().c_str(), testcase, buf ); sprintf(filepath, "%scv/stereo/case%d/%s", ts->get_data_path().c_str(), testcase, buf );
imglist.push_back(string(filepath)); imglist.push_back(string(filepath));
} }
fclose(f); fclose(f);
......
...@@ -185,13 +185,13 @@ void CV_ChessboardDetectorTest::run_batch( const string& filename ) ...@@ -185,13 +185,13 @@ void CV_ChessboardDetectorTest::run_batch( const string& filename )
switch( pattern ) switch( pattern )
{ {
case CHESSBOARD: case CHESSBOARD:
folder = string(ts->get_data_path()) + "cameracalibration/"; folder = string(ts->get_data_path()) + "cv/cameracalibration/";
break; break;
case CIRCLES_GRID: case CIRCLES_GRID:
folder = string(ts->get_data_path()) + "cameracalibration/circles/"; folder = string(ts->get_data_path()) + "cv/cameracalibration/circles/";
break; break;
case ASYMMETRIC_CIRCLES_GRID: case ASYMMETRIC_CIRCLES_GRID:
folder = string(ts->get_data_path()) + "cameracalibration/asymmetric_circles/"; folder = string(ts->get_data_path()) + "cv/cameracalibration/asymmetric_circles/";
break; break;
} }
......
...@@ -75,7 +75,7 @@ void CV_ChessboardDetectorTimingTest::run( int start_from ) ...@@ -75,7 +75,7 @@ void CV_ChessboardDetectorTimingTest::run( int start_from )
int idx, max_idx; int idx, max_idx;
int progress = 0; int progress = 0;
sprintf( filepath, "%scameracalibration/", ts->get_data_path().c_str() ); sprintf( filepath, "%scv/cameracalibration/", ts->get_data_path().c_str() );
sprintf( filename, "%schessboard_timing_list.dat", filepath ); sprintf( filename, "%schessboard_timing_list.dat", filepath );
CvFileStorage* fs = cvOpenFileStorage( filename, 0, CV_STORAGE_READ ); CvFileStorage* fs = cvOpenFileStorage( filename, 0, CV_STORAGE_READ );
CvFileNode* board_list = fs ? cvGetFileNodeByName( fs, 0, "boards" ) : 0; CvFileNode* board_list = fs ? cvGetFileNodeByName( fs, 0, "boards" ) : 0;
......
#include "test_precomp.hpp" #include "test_precomp.hpp"
CV_TEST_MAIN("cv") CV_TEST_MAIN("")
...@@ -398,7 +398,7 @@ protected: ...@@ -398,7 +398,7 @@ protected:
void CV_StereoMatchingTest::run(int) void CV_StereoMatchingTest::run(int)
{ {
string dataPath = ts->get_data_path(); string dataPath = ts->get_data_path() + "cv/";
string algorithmName = name; string algorithmName = name;
assert( !algorithmName.empty() ); assert( !algorithmName.empty() );
if( dataPath.empty() ) if( dataPath.empty() )
......
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