提交 4013ce57 编写于 作者: A Alexander Alekhin

Merge pull request #7246 from paroj:bgfg_ocl

...@@ -846,7 +846,7 @@ void BackgroundSubtractorMOG2Impl::apply(InputArray _image, OutputArray _fgmask, ...@@ -846,7 +846,7 @@ void BackgroundSubtractorMOG2Impl::apply(InputArray _image, OutputArray _fgmask,
#ifdef HAVE_OPENCL #ifdef HAVE_OPENCL
if (opencl_ON) if (opencl_ON)
{ {
CV_OCL_RUN(opencl_ON, ocl_apply(_image, _fgmask, learningRate)) CV_OCL_RUN(_image.isUMat(), ocl_apply(_image, _fgmask, learningRate))
opencl_ON = false; opencl_ON = false;
initialize(_image.size(), _image.type()); initialize(_image.size(), _image.type());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册