mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
completely new C++ persistence implementation (#13011)
* integrated the new C++ persistence; removed old persistence; most of OpenCV compiles fine! the tests have not been run yet * fixed multiple bugs in the new C++ persistence * fixed raw size of the parsed empty sequences * [temporarily] excluded obsolete applications traincascade and createsamples from build * fixed several compiler warnings and multiple test failures * undo changes in cocoa window rendering (that was fixed in another PR) * fixed more compile warnings and the remaining test failures (hopefully) * trying to fix the last little warning
This commit is contained in:
@@ -227,14 +227,14 @@ void BaseTest::clear()
|
||||
}
|
||||
|
||||
|
||||
const CvFileNode* BaseTest::find_param( CvFileStorage* fs, const char* param_name )
|
||||
cv::FileNode BaseTest::find_param( const cv::FileStorage& fs, const char* param_name )
|
||||
{
|
||||
CvFileNode* node = cvGetFileNodeByName(fs, 0, get_name().c_str());
|
||||
return node ? cvGetFileNodeByName( fs, node, param_name ) : 0;
|
||||
cv::FileNode node = fs[get_name()];
|
||||
return node[param_name];
|
||||
}
|
||||
|
||||
|
||||
int BaseTest::read_params( CvFileStorage* )
|
||||
int BaseTest::read_params( const cv::FileStorage& )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user