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
@@ -327,21 +327,6 @@ TEST(GAPI_Pipeline, PipelineAllocatingKernel)
|
||||
EXPECT_THROW(comp.apply(in_mat, out_mat, cv::compile_args(pkg)), std::logic_error);
|
||||
}
|
||||
|
||||
TEST(GAPI_Pipeline, CanUseOwnMatAsOutput)
|
||||
{
|
||||
cv::GMat in;
|
||||
cv::GComputation comp(in, cv::gapi::bitwise_not(in));
|
||||
|
||||
cv::Mat in_mat(3, 3, CV_8UC1);
|
||||
cv::Mat out_mat(3, 3, CV_8UC1);
|
||||
|
||||
cv::gapi::own::Mat in_own_mat(in_mat.rows, in_mat.cols, CV_8UC1, in_mat.data);
|
||||
cv::gapi::own::Mat out_own_mat(out_mat.rows, out_mat.cols, CV_8UC1, out_mat.data);
|
||||
|
||||
// FIXME add overload for apply(cv::gapi::own::Mat in, cv::gapi::own::Mat& out)
|
||||
EXPECT_NO_THROW(comp.apply({in_own_mat}, {out_own_mat}));
|
||||
}
|
||||
|
||||
TEST(GAPI_Pipeline, CreateKernelImplFromLambda)
|
||||
{
|
||||
cv::Size size(300, 300);
|
||||
|
||||
Reference in New Issue
Block a user