fix errors from test.

Two other test are still needed.

1. Verify the Base64 data.
2. Read an old YML file for compatibility test.
This commit is contained in:
MYLS
2016-06-19 00:45:51 +08:00
parent d1b097f409
commit 882e4221e7
2 changed files with 43 additions and 24 deletions

View File

@@ -600,7 +600,11 @@ TEST(Core_InputOutput, filestorage_yml_base64)
/* 4d mat */
const int Size[] = {4, 4, 4, 4};
cv::Mat _4d(4, Size, CV_32FC4);
const cv::Range ranges[] = { {0, 2}, {0, 2}, {1, 2}, {0, 2} };
const cv::Range ranges[] = {
cv::Range(0, 2),
cv::Range(0, 2),
cv::Range(1, 2),
cv::Range(0, 2) };
_nd_out = _4d(ranges);
}
@@ -658,7 +662,11 @@ TEST(Core_InputOutput, filestorage_xml_base64)
/* 4d mat */
const int Size[] = {4, 4, 4, 4};
cv::Mat _4d(4, Size, CV_32FC4);
const cv::Range ranges[] = { {0, 2}, {0, 2}, {1, 2}, {0, 2} };
const cv::Range ranges[] = {
cv::Range(0, 2),
cv::Range(0, 2),
cv::Range(1, 2),
cv::Range(0, 2) };
_nd_out = _4d(ranges);
}