diff --git a/modules/ocl/src/mcwutil.cpp b/modules/ocl/src/mcwutil.cpp index 75314fb49c..4292a1f877 100644 --- a/modules/ocl/src/mcwutil.cpp +++ b/modules/ocl/src/mcwutil.cpp @@ -149,7 +149,7 @@ namespace cv cl_image_format format; int err; int depth = mat.depth(); - int channels = mat.channels(); + int channels = mat.oclchannels(); switch(depth) {