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

implemented rb_cvCreateStructuringElementEx and replaced cvCreateStructuringElementEx with rb_cvCreateStructuringElementEx to create IplConvKernel as much as possible

This commit is contained in:
ser1zw 2011-04-28 00:22:23 +09:00
parent 586f2161eb
commit d9a7960949
4 changed files with 36 additions and 2 deletions

View file

@ -104,7 +104,8 @@ rb_initialize(int argc, VALUE *argv, VALUE self)
for (int i = 0; i < num_values; i++)
_values[i] = NUM2INT(values_ptr[i]);
}
DATA_PTR(self) = cvCreateStructuringElementEx(_cols, _rows, NUM2INT(anchor_x), NUM2INT(anchor_y),shape_type, _values);
DATA_PTR(self) = rb_cvCreateStructuringElementEx(_cols, _rows, NUM2INT(anchor_x), NUM2INT(anchor_y),
shape_type, _values);
return self;
}