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
10 #include "opencv2/gapi/ocl/goclkernel.hpp"
12 const cv::UMat& cv::GOCLContext::inMat(int input)
14 return (inArg<cv::UMat>(input));
17 cv::UMat& cv::GOCLContext::outMatR(int output)
19 return (*(util::get<cv::UMat*>(m_results.at(output))));
22 const cv::gapi::own::Scalar& cv::GOCLContext::inVal(int input)
24 return inArg<cv::gapi::own::Scalar>(input);
27 cv::gapi::own::Scalar& cv::GOCLContext::outValR(int output)
29 return *util::get<cv::gapi::own::Scalar*>(m_results.at(output));
32 cv::detail::VectorRef& cv::GOCLContext::outVecRef(int output)
34 return util::get<cv::detail::VectorRef>(m_results.at(output));
37 cv::GOCLKernel::GOCLKernel()
41 cv::GOCLKernel::GOCLKernel(const GOCLKernel::F &f)
46 void cv::GOCLKernel::apply(GOCLContext &ctx)