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

fixed a bug (IplImage#or returns CvMat object)

This commit is contained in:
ser1zw 2011-05-28 15:28:51 +09:00
parent 1adeec5914
commit efc7292cdf

View file

@ -742,10 +742,7 @@ rb_copy(int argc, VALUE *argv, VALUE self)
VALUE
copy(VALUE mat)
{
CvMat *src = CVMAT(mat);
VALUE copied = new_object(cvGetSize(src), cvGetElemType(src));
cvCopy(src, CVMAT(copied));
return copied;
return rb_clone(mat);
}