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:
parent
c1378d3959
commit
32b2c0a41d
1 changed files with 1 additions and 1 deletions
|
@ -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) \
|
||||
|
|
Loading…
Reference in a new issue