mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
added error handling to some methods (2)
Added error handlings to the methods of following classes or modules -CvPoint2D32f -CvPoint3D32f -CvRect -CvScalar -CvSeq -CvSize -CvSize2D32f -CvSlice -CvSURFParams -CvSURFPoint -CvTermCriteria -CvTwoPoints -CvUtils -CvVideoWriter -GUI -IplConvKernel -IplImage -MouseEvent -OpenCV -Trackbar -Window
This commit is contained in:
parent
ea55e0d42e
commit
b3016fc68c
31 changed files with 407 additions and 245 deletions
|
@ -88,14 +88,14 @@ VALUE rb_name(VALUE self) {
|
|||
* Return the maximum value that can be taken this trackbar.
|
||||
*/
|
||||
VALUE rb_max(VALUE self) {
|
||||
return INT2FIX(TRACKBAR(self)->maxval);
|
||||
return INT2NUM(TRACKBAR(self)->maxval);
|
||||
}
|
||||
|
||||
/*
|
||||
* Return the value of this trackbar.
|
||||
*/
|
||||
VALUE rb_value(VALUE self) {
|
||||
return INT2FIX(TRACKBAR(self)->val);
|
||||
return INT2NUM(TRACKBAR(self)->val);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue