mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Merge pull request #16995 from mpashchenkov:mp/ocv-gapi-standalone-mat
G-API: Mat's "deownification" * deowned Mat * boner * Removed canDescribe test for own::Mat * Removed STANDALONE flag for apply() and operator() * Removed: desc_tests for own::Mat, descr_of for own::Mat. * Returned: tests, cv::gapi::own::descr_of; fixed alignment; Removed own::Mat's headers * Removed unused header own/mat.hpp from gbackend.hpp
This commit is contained in:
committed by
GitHub
parent
f19d0ae41d
commit
94e36d8c8d
@@ -137,23 +137,6 @@ TEST(GAPI_MetaDesc, OwnMatDescND)
|
||||
EXPECT_TRUE(desc.isND());
|
||||
}
|
||||
|
||||
TEST(GAPI_MetaDesc, CanDescribeOwnMat)
|
||||
{
|
||||
constexpr int w = 15;
|
||||
constexpr int h = 7;
|
||||
cv::gapi::own::Mat m0(h, w, CV_8UC3, nullptr);
|
||||
cv::GMatDesc md0{CV_8U,3,{w,h},false};
|
||||
|
||||
cv::gapi::own::Mat m1(h*3, w, CV_8UC1, nullptr);
|
||||
cv::GMatDesc md10{CV_8U,3,{w,h},true};
|
||||
cv::GMatDesc md11{CV_8U,1,{w,h*3},false};
|
||||
|
||||
EXPECT_TRUE (md0 .canDescribe(m0));
|
||||
EXPECT_FALSE(md0 .canDescribe(m1));
|
||||
EXPECT_TRUE (md10.canDescribe(m1));
|
||||
EXPECT_TRUE (md11.canDescribe(m1));
|
||||
}
|
||||
|
||||
TEST(GAPI_MetaDesc, VecOwnMatDesc)
|
||||
{
|
||||
std::vector<cv::gapi::own::Mat> vec = {
|
||||
|
||||
Reference in New Issue
Block a user