Commit 85a284c0 authored by Alexander Alekhin's avatar Alexander Alekhin

surf: fix OpenCL condition

parent d32827a8
...@@ -893,7 +893,7 @@ void SURF_Impl::detectAndCompute(InputArray _img, InputArray _mask, ...@@ -893,7 +893,7 @@ void SURF_Impl::detectAndCompute(InputArray _img, InputArray _mask,
CV_Assert(_descriptors.needed() || !useProvidedKeypoints); CV_Assert(_descriptors.needed() || !useProvidedKeypoints);
#ifdef HAVE_OPENCL #ifdef HAVE_OPENCL
if( ocl::useOpenCL() ) if( ocl::useOpenCL() && _img.isUMat())
{ {
SURF_OCL ocl_surf; SURF_OCL ocl_surf;
UMat gpu_kpt; UMat gpu_kpt;
......
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