mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
modified cvcontourtree.cpp, cvfont.h, iplconvkernel.cpp to suppress warnings
This commit is contained in:
parent
b6eebd4fb4
commit
a3e10782ae
3 changed files with 5 additions and 3 deletions
|
@ -78,7 +78,9 @@ rb_contour(int argc, VALUE *argv, VALUE self)
|
|||
{
|
||||
VALUE criteria, storage;
|
||||
rb_scan_args(argc, argv, "01", &criteria);
|
||||
CvSeq *contour = cvContourFromContourTree(CVCONTOURTREE(self), CVMEMSTORAGE(storage), VALUE_TO_CVTERMCRITERIA(criteria));
|
||||
storage = cCvMemStorage::new_object();
|
||||
CvSeq *contour = cvContourFromContourTree(CVCONTOURTREE(self), CVMEMSTORAGE(storage),
|
||||
VALUE_TO_CVTERMCRITERIA(criteria));
|
||||
return cCvSeq::new_sequence(cCvContour::rb_class(), contour, cCvPoint::rb_class(), storage);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue