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:
parent
1adeec5914
commit
efc7292cdf
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue