mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
Fix #10525
This commit is contained in:
parent
d0b2e60edc
commit
95ce21d407
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user