From 2ec1140b25098421915bc7781e2498c4858810c6 Mon Sep 17 00:00:00 2001 From: yao Date: Wed, 26 Jun 2013 16:58:20 +0800 Subject: [PATCH] fix pyrlk --- modules/ocl/src/mcwutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {