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:
parent
586f2161eb
commit
d9a7960949
4 changed files with 36 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue