1
0
Fork 0
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:
ser1zw 2011-04-28 00:36:34 +09:00
parent d9a7960949
commit 1ca99720c5
6 changed files with 36 additions and 6 deletions

View file

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