From 32b2c0a41da38dd25df87658bce4a771f8160c06 Mon Sep 17 00:00:00 2001 From: ser1zw Date: Sun, 30 Oct 2011 18:48:17 +0900 Subject: [PATCH] fixed color conversion function for Mac OS X --- ext/opencv/opencv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opencv/opencv.cpp b/ext/opencv/opencv.cpp index e0de13a..6e288e8 100644 --- a/ext/opencv/opencv.cpp +++ b/ext/opencv/opencv.cpp @@ -517,7 +517,7 @@ define_ruby_module() VALUE rb_func_name(VALUE klass, VALUE image) \ { \ VALUE dest = Qnil; \ - CvArr* img_ptr = CVMAT_WITH_CHECK(image); \ + CvArr* img_ptr = CVARR(image); \ try { \ int type = cvGetElemType(img_ptr); \ if (CV_MAT_CN(type) != src_cn) \