Added ND GMatDesc serialization test

pull/18688/head
Ruslan Garnov 4 years ago
parent 14aa8affe5
commit 58268b6eef
  1. 6
      modules/gapi/test/s11n/gapi_s11n_tests.cpp

@ -365,6 +365,12 @@ TEST_F(S11N_Basic, Test_MatDesc) {
EXPECT_EQ(v, get<cv::GMatDesc>());
}
TEST_F(S11N_Basic, Test_MatDescND) {
cv::GMatDesc v = { CV_8U, {1,1,224,224} };
put(v);
EXPECT_EQ(v, get<cv::GMatDesc>());
}
TEST_F(S11N_Basic, Test_MetaArg_MatDesc) {
cv::GMatDesc desc = { CV_8U, 1,{ 320,240 } };
auto v = cv::GMetaArg{ desc };

Loading…
Cancel
Save