Skip to content

Commit 8f7e58a

Browse files
author
Nuzhny007
committed
Fixed bug in BTVL1 superres with UMat without OpenCL initialization
1 parent 8532e65 commit 8f7e58a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/superres/src/super_resolution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void cv::superres::SuperResolution::nextFrame(OutputArray frame)
6363
{
6464
CV_INSTRUMENT_REGION();
6565

66-
isUmat_ = frame.isUMat();
66+
isUmat_ = frame.isUMat() && cv::ocl::useOpenCL();
6767

6868
if (firstCall_)
6969
{

0 commit comments

Comments
 (0)