|
|
@ -443,7 +443,7 @@ struct OCVStCallHelper<Impl, std::tuple<Ins...>, std::tuple<Outs...>> : |
|
|
|
template<class Impl, class K> |
|
|
|
template<class Impl, class K> |
|
|
|
class GCPUKernelImpl: public cv::detail::KernelTag |
|
|
|
class GCPUKernelImpl: public cv::detail::KernelTag |
|
|
|
{ |
|
|
|
{ |
|
|
|
using CallHelper = detail::OCVCallHelper<Impl, typename K::InArgs, typename K::OutArgs>; |
|
|
|
using CallHelper = cv::detail::OCVCallHelper<Impl, typename K::InArgs, typename K::OutArgs>; |
|
|
|
|
|
|
|
|
|
|
|
public: |
|
|
|
public: |
|
|
|
using API = K; |
|
|
|
using API = K; |
|
|
@ -497,7 +497,7 @@ private: |
|
|
|
template<typename K, typename Callable> |
|
|
|
template<typename K, typename Callable> |
|
|
|
gapi::cpu::GOCVFunctor gapi::cpu::ocv_kernel(Callable& c) |
|
|
|
gapi::cpu::GOCVFunctor gapi::cpu::ocv_kernel(Callable& c) |
|
|
|
{ |
|
|
|
{ |
|
|
|
using P = detail::OCVCallHelper<Callable, typename K::InArgs, typename K::OutArgs>; |
|
|
|
using P = cv::detail::OCVCallHelper<Callable, typename K::InArgs, typename K::OutArgs>; |
|
|
|
return GOCVFunctor{ K::id() |
|
|
|
return GOCVFunctor{ K::id() |
|
|
|
, &K::getOutMeta |
|
|
|
, &K::getOutMeta |
|
|
|
, std::bind(&P::callFunctor, std::placeholders::_1, std::ref(c)) |
|
|
|
, std::bind(&P::callFunctor, std::placeholders::_1, std::ref(c)) |
|
|
@ -507,7 +507,7 @@ gapi::cpu::GOCVFunctor gapi::cpu::ocv_kernel(Callable& c) |
|
|
|
template<typename K, typename Callable> |
|
|
|
template<typename K, typename Callable> |
|
|
|
gapi::cpu::GOCVFunctor gapi::cpu::ocv_kernel(const Callable& c) |
|
|
|
gapi::cpu::GOCVFunctor gapi::cpu::ocv_kernel(const Callable& c) |
|
|
|
{ |
|
|
|
{ |
|
|
|
using P = detail::OCVCallHelper<Callable, typename K::InArgs, typename K::OutArgs>; |
|
|
|
using P = cv::detail::OCVCallHelper<Callable, typename K::InArgs, typename K::OutArgs>; |
|
|
|
return GOCVFunctor{ K::id() |
|
|
|
return GOCVFunctor{ K::id() |
|
|
|
, &K::getOutMeta |
|
|
|
, &K::getOutMeta |
|
|
|
, std::bind(&P::callFunctor, std::placeholders::_1, c) |
|
|
|
, std::bind(&P::callFunctor, std::placeholders::_1, c) |
|
|
|