mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
implemented rb_cvCreateMemStorage and replaced cvCreateMemStorage with rb_cvCreateMemStorage to create CvMemStorage as much as possible
This commit is contained in:
parent
d9a7960949
commit
1ca99720c5
6 changed files with 36 additions and 6 deletions
|
@ -104,7 +104,7 @@ rb_initialize(int argc, VALUE *argv, VALUE self)
|
|||
storage = CVMEMSTORAGE(storage_value);
|
||||
}
|
||||
else
|
||||
storage = cvCreateMemStorage(0);
|
||||
storage = rb_cvCreateMemStorage(0);
|
||||
|
||||
DATA_PTR(self) = (CvContour*)cvCreateSeq(CV_SEQ_ELTYPE_POINT, sizeof(CvContour),
|
||||
sizeof(CvPoint), storage);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue