Class: OpenCV::CvSlice
- Inherits:
-
Object
- Object
- OpenCV::CvSlice
- Defined in:
- ext/opencv/cvslice.cpp,
ext/opencv/cvslice.cpp
Overview
C structure is here, very simple. typdef struct CvSlice { int start_index; int end_index; } CvSlice;
Instance Method Summary collapse
- #end_index ⇒ Object
- #end_index=(index) ⇒ Object
-
#new(start, end) ⇒ Object
constructor
Create new slice object.
- #start_index ⇒ Object
- #start_index=(index) ⇒ Object
Constructor Details
#new(start, end) ⇒ Object
Create new slice object.
44 45 46 47 48 49 50 51 |
# File 'ext/opencv/cvslice.cpp', line 44 VALUE rb_initialize(VALUE self, VALUE start, VALUE end) { CvSlice *self_ptr = CVSLICE(self); self_ptr->start_index = NUM2INT(start); self_ptr->end_index = NUM2INT(end); return self; } |
Instance Method Details
#end_index ⇒ Object
69 70 71 72 73 |
# File 'ext/opencv/cvslice.cpp', line 69 VALUE rb_end_index_aref(VALUE self) { return INT2NUM(CVSLICE(self)->end_index); } |
#end_index=(index) ⇒ Object
92 93 94 95 96 97 |
# File 'ext/opencv/cvslice.cpp', line 92 VALUE rb_end_index_aset(VALUE self, VALUE index) { CVSLICE(self)->end_index = NUM2INT(index); return self; } |
#start_index ⇒ Object
58 59 60 61 62 |
# File 'ext/opencv/cvslice.cpp', line 58 VALUE rb_start_index_aref(VALUE self) { return INT2NUM(CVSLICE(self)->start_index); } |
#start_index=(index) ⇒ Object
80 81 82 83 84 85 |
# File 'ext/opencv/cvslice.cpp', line 80 VALUE rb_start_index_aset(VALUE self, VALUE index) { CVSLICE(self)->start_index = NUM2INT(index); return self; } |