1 // This file is part of OpenCV project.
2 // It is subject to the license terms in the LICENSE file found in the top-level directory
3 // of this distribution and at http://opencv.org/license.html.
5 // Copyright (C) 2018-2019 Intel Corporation
12 #include "opencv2/gapi/cpu/gcpukernel.hpp"
14 const cv::gapi::own::Mat& cv::GCPUContext::inMat(int input)
16 return inArg<cv::gapi::own::Mat>(input);
19 cv::gapi::own::Mat& cv::GCPUContext::outMatR(int output)
21 return *util::get<cv::gapi::own::Mat*>(m_results.at(output));
24 const cv::gapi::own::Scalar& cv::GCPUContext::inVal(int input)
26 return inArg<cv::gapi::own::Scalar>(input);
29 cv::gapi::own::Scalar& cv::GCPUContext::outValR(int output)
31 return *util::get<cv::gapi::own::Scalar*>(m_results.at(output));
34 cv::detail::VectorRef& cv::GCPUContext::outVecRef(int output)
36 return util::get<cv::detail::VectorRef>(m_results.at(output));
39 cv::GCPUKernel::GCPUKernel()
43 cv::GCPUKernel::GCPUKernel(const GCPUKernel::F &f)
48 void cv::GCPUKernel::apply(GCPUContext &ctx)