Merge pull request #10629 from GlueCrow:ocl_mog2_test_fix

This commit is contained in:
Vadim Pisarevsky 2018-01-19 11:12:19 +00:00
commit c89ae6e537

View File

@ -849,7 +849,7 @@ void BackgroundSubtractorMOG2Impl::apply(InputArray _image, OutputArray _fgmask,
#ifdef HAVE_OPENCL
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;
initialize(_image.size(), _image.type());