|
|
|
@ -1199,6 +1199,7 @@ TEST(Core_InputOutput, FileStorage_DMatch_vector_vector) |
|
|
|
|
|
|
|
|
|
EXPECT_NO_THROW(fs << "dvv" << dvv); |
|
|
|
|
cv::String fs_result = fs.releaseAndGetString(); |
|
|
|
|
#ifndef OPENCV_TRAITS_ENABLE_DEPRECATED |
|
|
|
|
#if defined _MSC_VER && _MSC_VER <= 1700 /* MSVC 2012 and older */ |
|
|
|
|
EXPECT_STREQ(fs_result.c_str(), |
|
|
|
|
"%YAML:1.0\n" |
|
|
|
@ -1226,6 +1227,7 @@ TEST(Core_InputOutput, FileStorage_DMatch_vector_vector) |
|
|
|
|
" - [ 1, 2, 3, -1.5000000000000000e+00 ]\n" |
|
|
|
|
); |
|
|
|
|
#endif |
|
|
|
|
#endif // OPENCV_TRAITS_ENABLE_DEPRECATED
|
|
|
|
|
|
|
|
|
|
cv::FileStorage fs_read(fs_result, cv::FileStorage::READ | cv::FileStorage::MEMORY); |
|
|
|
|
|
|
|
|
@ -1344,6 +1346,7 @@ TEST(Core_InputOutput, FileStorage_KeyPoint_vector_vector) |
|
|
|
|
|
|
|
|
|
EXPECT_NO_THROW(fs << "kvv" << kvv); |
|
|
|
|
cv::String fs_result = fs.releaseAndGetString(); |
|
|
|
|
#ifndef OPENCV_TRAITS_ENABLE_DEPRECATED |
|
|
|
|
EXPECT_STREQ(fs_result.c_str(), |
|
|
|
|
"<?xml version=\"1.0\"?>\n" |
|
|
|
|
"<opencv_storage>\n" |
|
|
|
@ -1362,6 +1365,7 @@ TEST(Core_InputOutput, FileStorage_KeyPoint_vector_vector) |
|
|
|
|
" 1. 2. 16. 0. 100. 1 -1</_></_></kvv>\n" |
|
|
|
|
"</opencv_storage>\n" |
|
|
|
|
); |
|
|
|
|
#endif //OPENCV_TRAITS_ENABLE_DEPRECATED
|
|
|
|
|
|
|
|
|
|
cv::FileStorage fs_read(fs_result, cv::FileStorage::READ | cv::FileStorage::MEMORY); |
|
|
|
|
|
|
|
|
|