Fixed bug in BTVL1 superres with UMat without OpenCL initialization

pull/2224/head
Nuzhny007 6 years ago
parent 8532e65182
commit 8f7e58ab31
  1. 2
      modules/superres/src/super_resolution.cpp

@ -63,7 +63,7 @@ void cv::superres::SuperResolution::nextFrame(OutputArray frame)
{
CV_INSTRUMENT_REGION();
isUmat_ = frame.isUMat();
isUmat_ = frame.isUMat() && cv::ocl::useOpenCL();
if (firstCall_)
{

Loading…
Cancel
Save