1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00
This commit is contained in:
Glue Crow
2018-01-18 18:49:29 +08:00
parent d0b2e60edc
commit 95ce21d407
+1 -1
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());