pull/10629/head
Glue Crow 7 years ago
parent d0b2e60edc
commit 95ce21d407
  1. 2
      modules/video/src/bgfg_gaussmix2.cpp

@ -849,7 +849,7 @@ void BackgroundSubtractorMOG2Impl::apply(InputArray _image, OutputArray _fgmask,
#ifdef HAVE_OPENCL #ifdef HAVE_OPENCL
if (opencl_ON) if (opencl_ON)
{ {
CV_OCL_RUN(_image.isUMat(), ocl_apply(_image, _fgmask, learningRate)) CV_OCL_RUN(_fgmask.isUMat(), ocl_apply(_image, _fgmask, learningRate))
opencl_ON = false; opencl_ON = false;
initialize(_image.size(), _image.type()); initialize(_image.size(), _image.type());

Loading…
Cancel
Save