Skip to content

Commit c89ae6e

Browse files
committed
Merge pull request opencv#10629 from GlueCrow:ocl_mog2_test_fix
2 parents 25c36fb + 95ce21d commit c89ae6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/video/src/bgfg_gaussmix2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ void BackgroundSubtractorMOG2Impl::apply(InputArray _image, OutputArray _fgmask,
849849
#ifdef HAVE_OPENCL
850850
if (opencl_ON)
851851
{
852-
CV_OCL_RUN(_image.isUMat(), ocl_apply(_image, _fgmask, learningRate))
852+
CV_OCL_RUN(_fgmask.isUMat(), ocl_apply(_image, _fgmask, learningRate))
853853

854854
opencl_ON = false;
855855
initialize(_image.size(), _image.type());

0 commit comments

Comments
 (0)