fix pyrlk
authoryao <bitwangyaoyao@gmail.com>
Wed, 26 Jun 2013 08:58:20 +0000 (16:58 +0800)
committeryao <bitwangyaoyao@gmail.com>
Wed, 26 Jun 2013 08:58:20 +0000 (16:58 +0800)
modules/ocl/src/mcwutil.cpp

index 75314fb49c5476aa7b6f6e203b687543479922c7..4292a1f8773a5993c32918221f51a7d71b6e8b15 100644 (file)
@@ -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)
             {