Commit 8f7e58ab authored by Nuzhny007's avatar Nuzhny007

Fixed bug in BTVL1 superres with UMat without OpenCL initialization

parent 8532e651
......@@ -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_)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment