1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

fixed color conversion function for Mac OS X

This commit is contained in:
ser1zw 2011-10-30 18:48:17 +09:00
parent c1378d3959
commit 32b2c0a41d

View file

@ -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) \